12 Replies Latest reply on Oct 19, 2016 10:47 AM by ebuzer taha kanat

    Wildfly 10, standalone resource adapter and App.Ear deployment ClassCastException

    ebuzer taha kanat Newbie

      Hello everyone,

       

      I have a problem which driven me crazy. Oh God, i beg your mercy! I have multi module ear project build by maven. It uses a standalone deployed resource adapter.

       

      Project structure:
      
      Parent module
           Ear Module
           Ejb Module
           War Module
      

       

       

       

      Ear Structure:
           META-INF/
           META-INF/MANIFEST.MF
           lib/
           App-ejb.jar
           lib/jhades.jar
           META-INF/jboss-app.xml (Basically a forgotten deployment descriptor every elements are either deprecated and ignored by wildfly or another descriptor is doing the same thing  )
           META-INF/jboss-deployment-structure.xml
           META-INF/application.xml
           App-web.war
      

       

       

      War structure:
           Bunch of cool stuff nothing is shared with ejb.jar but depends on it.
      

       

      Ejb structure:
           DataAccess Transactional ejbs
           Controller ejbs for mobile services *
           Controller ejbs for JSF services *
           Model Classes (JDO persistable) !
           Other Classes
           META-INF/
           META-INF/ejb-jar.xml
           META-INF/beans.xml
           META-INF/MANIFEST.MF
      

       

      Those * are where we call our resource adapter with @Resource annotation adapter gives us a PersistenceManagerFactory we use that to get a PersistenceManager then we inject that persistenceManagers to DataAccess ejbs it will be used there none of them are problem.

       

      I can deploy my ear to Wildfly 10 it works all the resource adapter thing and everything as expected! yay! But when i redeploy my ear and call any service which call data access ejbs and resource adapter returns data from datastore then it happens:

      SEVERE [javax.enterprise.resource.webcontainer.jsf.context] (default task-24) javax.faces.el.EvaluationException: javax.ejb.EJBException: java.lang.ClassCastException: model.User cannot be cast to model.User

      If we reload the wildfly after every deployment there is no problem which we did for a quite sometime but it is a problem when you want to use arquillian for integration testing.

       

      I live enough to know that cause of this is same class, two classloader. First i thought this is happening to me because war depends on ejb.jar and model classes are in ejb.jar but no! same thing happens when i run a simple arquillian test which has no war service classes .  Now it is pretty clear for me that problem is between my resource adapter classloader and my ear classloader.

       

       

      Is this a expected behavior or a bug? How can i solve this ? BTW yes i read the Class Loading in WildFly - WildFly 10 - Project Documentation Editor .

       

       

      Should i have to change my standalone resource adapter to a module or wrap in my ear isn't there another possibility?

       

       

      <jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.1">
      
      <!-- desperate attempts -->
        <sub-deployment name="App-web.war">
        <dependencies>
        <module name="deployment.App-ear.ear.App-ejb.jar"></module>
        </dependencies>
        </sub-deployment>
        <deployment>
        <dependencies>
        <module name="deployment.App-ear.ear.App-ejb.jar" export="true"></module>
        <module name="javax.jdo" export="true" />
        </dependencies>
        </deployment>
      </jboss-deployment-structure>
      

       

       

      <?xml version="1.0" encoding="UTF-8"?>
      <application xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/application_7.xsd" version="7">
        <display-name>App-ear</display-name>
        <module>
          <web>
            <web-uri>App-web.war</web-uri>
            <context-root>/App-web</context-root>
          </web>
        </module>
        <module>
          <ejb>App-ejb.jar</ejb>
        </module>
        <library-directory>lib</library-directory>
      </application>
      

          

       

      <subsystem xmlns="urn:jboss:domain:resource-adapters:4.0">
                  <resource-adapters>
                      <resource-adapter id="test">
                          <archive>
                              datanucleus-jdo-jca-5.0.0-m1.rar
                          </archive>
                          <transaction-support>XATransaction</transaction-support>
                          <connection-definitions>
                              <connection-definition class-name="org.datanucleus.jdo.connector.ManagedConnectionFactoryImpl" jndi-name="java:/Factory" connectable="true" pool-name="DNConnectionFactory">
                                  <config-property name="PersistenceUnitName">
                                      pu
                                  </config-property>
                                  <xa-pool>
                                      <min-pool-size>1</min-pool-size>
                                      <initial-pool-size>1</initial-pool-size>
                                  </xa-pool>
                              </connection-definition>
                          </connection-definitions>
                      </resource-adapter>
                  </resource-adapters>
              </subsystem>
      
        • 1. Re: Wildfly 10, standalone resource adapter and App.Ear deployment ClassCastException
          Tomaz Cerar Master

          you have class "model.User" packed in two different modules.

           

          check your deployment and make sure that jar that has this class is not present in multiple places.

          • 2. Re: Wildfly 10, standalone resource adapter and App.Ear deployment ClassCastException
            ebuzer taha kanat Newbie

            It is not that easy tomaz result of jar -tf to ear, war, ejb.jar archives shows that my model classes are only in ejb.jar archive. I also double checked with looking archive with archive manager. I suspect that my model classes being loaded to resource adapter deployments AppClassloader and when i redeploy my application classloader changes but resource adapters dont hence model.User can not be cast to model.User but i dont know to how to fix it any suggestions?

            • 3. Re: Wildfly 10, standalone resource adapter and App.Ear deployment ClassCastException
              ebuzer taha kanat Newbie

              Is there a way to force the wildfly to use same classloader for two deployments? I couldn't find it. Or maybe a way to configure wildfly to reload a deployment after another depending deployment happens.

              • 4. Re: Wildfly 10, standalone resource adapter and App.Ear deployment ClassCastException
                jaikiran pai Master

                Which exact version of WildFly 10 is this? If you have tried WildFly 10.1.0.Final, I would recommend you test this there and see if it works there.

                 

                Can you also post the entire exception stacktrace that you see when you redeploy the application?

                • 5. Re: Wildfly 10, standalone resource adapter and App.Ear deployment ClassCastException
                  ebuzer taha kanat Newbie

                  I did not say that it gives a exception on deploy. Actually there is no problem if i reload AS after deployment. problem is i should not have be to reload my AS after every deployment to not getting ClassCastException on the first resource adapter use call.

                   

                  Let me say it again,

                   

                  On first deployment everythings works fine, after redeploy if i reload my wildfly works fine too. But if don't reload after redeploy it gives ClassCastException on resource adapter call return.

                   

                  Adapter returns a model class object to ejb, ejb looks to that object and says: hey this object is not a instance of class i know your class and my class is not same !

                   

                  It is Wildfly 10.0.0.Final

                  • 6. Re: Wildfly 10, standalone resource adapter and App.Ear deployment ClassCastException
                    jaikiran pai Master

                    ebuzer taha kanat wrote:

                     

                    I did not say that it gives a exception on deploy

                    ....

                    But if don't reload after redeploy it gives ClassCastException on resource adapter call return.

                     

                    And that's exactly the exception stacktrace I asked you to post:

                     

                    Can you also post the entire exception stacktrace that you see when you redeploy the application?

                    • 7. Re: Wildfly 10, standalone resource adapter and App.Ear deployment ClassCastException
                      ebuzer taha kanat Newbie

                      StackTrace of exception on invocation:

                       

                      2016-10-10 08:24:40,982 INFO  [stdout] (default task-24) org.datanucleus.jdo.connector.PersistenceManagerImpl@24148384

                      2016-10-10 08:24:40,991 ERROR [org.jboss.as.ejb3.invocation] (default task-24) WFLYEJB0034: EJB Invocation failed on component KayıtVeriİşleyici for method public abstract org.arasti.kayd.model.entities.ana.Kullanıcı org.arasti.kayd.data.Interfaces.KayıtBileşenİşlemleriLocal.KullanıcıNesnesiDBGetir(java.lang.String): javax.ejb.EJBException: java.lang.ClassCastException: org.arasti.kayd.model.entities.ana.Kullanıcı cannot be cast to org.arasti.kayd.model.entities.ana.Kullanıcı

                          at org.jboss.as.ejb3.tx.CMTTxInterceptor.handleExceptionInOurTx(CMTTxInterceptor.java:187)

                          at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:277)

                          at org.jboss.as.ejb3.tx.CMTTxInterceptor.requiresNew(CMTTxInterceptor.java:344)

                          at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:241)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.component.invocationmetrics.WaitTimeInterceptor.processInvocation(WaitTimeInterceptor.java:43)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:100)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:66)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:54)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:64)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:356)

                          at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:636)

                          at org.jboss.invocation.AccessCheckingInterceptor.processInvocation(AccessCheckingInterceptor.java:61)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:356)

                          at org.jboss.invocation.PrivilegedWithCombinerInterceptor.processInvocation(PrivilegedWithCombinerInterceptor.java:80)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

                          at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:195)

                          at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:185)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

                          at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:73)

                          at org.arasti.kayd.data.Interfaces.KayıtBileşenİşlemleriLocal$$$view877.KullanıcıNesnesiDBGetir(Unknown Source)

                          at org.arasti.kayd.controller.activities.jsf.KullanıcıAWJSF.KullanıcıGirişiYap(KullanıcıAWJSF.java:377)

                          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

                          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                          at java.lang.reflect.Method.invoke(Method.java:498)

                          at org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:437)

                          at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.delegateInterception(Jsr299BindingsInterceptor.java:70)

                          at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:80)

                          at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:93)

                          at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:437)

                          at org.arasti.kayd.util.interceptors.ActivityMethodInvocationLogInterceptor.intercept(ActivityMethodInvocationLogInterceptor.java:16)

                          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

                          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                          at java.lang.reflect.Method.invoke(Method.java:498)

                          at org.jboss.as.ee.component.ManagedReferenceLifecycleMethodInterceptor.processInvocation(ManagedReferenceLifecycleMethodInterceptor.java:89)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:437)

                          at org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:64)

                          at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:83)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:45)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

                          at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:52)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:275)

                          at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:327)

                          at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:239)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.component.invocationmetrics.WaitTimeInterceptor.processInvocation(WaitTimeInterceptor.java:43)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:100)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:66)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:54)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:64)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:356)

                          at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:636)

                          at org.jboss.invocation.AccessCheckingInterceptor.processInvocation(AccessCheckingInterceptor.java:61)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:356)

                          at org.jboss.invocation.PrivilegedWithCombinerInterceptor.processInvocation(PrivilegedWithCombinerInterceptor.java:80)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

                          at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:195)

                          at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:185)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

                          at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:73)

                          at org.arasti.kayd.controller.activities.jsf.KullanıcıAWLocal$$$view854.KullanıcıGirişiYap(Unknown Source)

                          at org.arasti.kayd.managedbeans.reglog.LoginService.login(LoginService.java:18)

                          at org.arasti.kayd.managedbeans.reglog.LoginView.girişYap(LoginView.java:36)

                          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

                          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                          at java.lang.reflect.Method.invoke(Method.java:498)

                          at com.sun.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:181)

                          at com.sun.el.parser.AstValue.invoke(AstValue.java:289)

                          at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:304)

                          at org.jboss.weld.util.el.ForwardingMethodExpression.invoke(ForwardingMethodExpression.java:40)

                          at org.jboss.weld.el.WeldMethodExpression.invoke(WeldMethodExpression.java:50)

                          at org.jboss.weld.util.el.ForwardingMethodExpression.invoke(ForwardingMethodExpression.java:40)

                          at org.jboss.weld.el.WeldMethodExpression.invoke(WeldMethodExpression.java:50)

                          at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)

                          at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:87)

                          at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)

                          at org.primefaces.application.DialogActionListener.processAction(DialogActionListener.java:45)

                          at javax.faces.component.UICommand.broadcast(UICommand.java:315)

                          at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:790)

                          at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1282)

                          at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)

                          at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)

                          at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:198)

                          at javax.faces.webapp.FacesServlet.service(FacesServlet.java:658)

                          at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)

                          at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129)

                          at io.undertow.websockets.jsr.JsrWebSocketFilter.doFilter(JsrWebSocketFilter.java:129)

                          at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60)

                          at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)

                          at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84)

                          at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)

                          at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)

                          at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)

                          at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

                          at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)

                          at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)

                          at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

                          at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)

                          at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)

                          at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)

                          at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)

                          at io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)

                          at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)

                          at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

                          at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)

                          at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

                          at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

                          at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:284)

                          at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:263)

                          at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)

                          at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:174)

                          at io.undertow.server.Connectors.executeRootHandler(Connectors.java:202)

                          at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:793)

                          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

                          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

                          at java.lang.Thread.run(Thread.java:745)

                      Caused by: java.lang.ClassCastException: org.arasti.kayd.model.entities.ana.Kullanıcı cannot be cast to org.arasti.kayd.model.entities.ana.Kullanıcı

                          at org.arasti.kayd.data.Implemantors.KayıtVeriİşleyici.KullanıcıNesnesiDBGetir(KayıtVeriİşleyici.java:726)

                          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

                          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                          at java.lang.reflect.Method.invoke(Method.java:498)

                          at org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:437)

                          at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.delegateInterception(Jsr299BindingsInterceptor.java:70)

                          at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:80)

                          at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:93)

                          at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:437)

                          at org.arasti.kayd.util.interceptors.DataMethodInvocationLogInterceptor.intercept(DataMethodInvocationLogInterceptor.java:16)

                          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

                          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                          at java.lang.reflect.Method.invoke(Method.java:498)

                          at org.jboss.as.ee.component.ManagedReferenceLifecycleMethodInterceptor.processInvocation(ManagedReferenceLifecycleMethodInterceptor.java:89)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:437)

                          at org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:64)

                          at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:83)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:45)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

                          at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:52)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:275)

                          ... 161 more

                       

                      2016-10-10 08:24:40,992 ERROR [org.jboss.as.ejb3.invocation] (default task-24) WFLYEJB0034: EJB Invocation failed on component KullanıcıAWJSF for method public abstract org.arasti.kayd.model.entities.ana.Kullanıcı org.arasti.kayd.controller.activities.jsf.KullanıcıAWLocal.KullanıcıGirişiYap(java.lang.String,java.lang.String): javax.ejb.EJBException: java.lang.ClassCastException: org.arasti.kayd.model.entities.ana.Kullanıcı cannot be cast to org.arasti.kayd.model.entities.ana.Kullanıcı

                          at org.jboss.as.ejb3.tx.CMTTxInterceptor.handleExceptionInOurTx(CMTTxInterceptor.java:187)

                          at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:277)

                          at org.jboss.as.ejb3.tx.CMTTxInterceptor.requiresNew(CMTTxInterceptor.java:344)

                          at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:241)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.component.invocationmetrics.WaitTimeInterceptor.processInvocation(WaitTimeInterceptor.java:43)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:100)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:66)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:54)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:64)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:356)

                          at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:636)

                          at org.jboss.invocation.AccessCheckingInterceptor.processInvocation(AccessCheckingInterceptor.java:61)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:356)

                          at org.jboss.invocation.PrivilegedWithCombinerInterceptor.processInvocation(PrivilegedWithCombinerInterceptor.java:80)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

                          at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:195)

                          at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:185)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

                          at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:73)

                          at org.arasti.kayd.data.Interfaces.KayıtBileşenİşlemleriLocal$$$view877.KullanıcıNesnesiDBGetir(Unknown Source)

                          at org.arasti.kayd.controller.activities.jsf.KullanıcıAWJSF.KullanıcıGirişiYap(KullanıcıAWJSF.java:377)

                          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

                          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                          at java.lang.reflect.Method.invoke(Method.java:498)

                          at org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:437)

                          at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.delegateInterception(Jsr299BindingsInterceptor.java:70)

                          at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:80)

                          at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:93)

                          at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:437)

                          at org.arasti.kayd.util.interceptors.ActivityMethodInvocationLogInterceptor.intercept(ActivityMethodInvocationLogInterceptor.java:16)

                          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

                          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                          at java.lang.reflect.Method.invoke(Method.java:498)

                          at org.jboss.as.ee.component.ManagedReferenceLifecycleMethodInterceptor.processInvocation(ManagedReferenceLifecycleMethodInterceptor.java:89)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:437)

                          at org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:64)

                          at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:83)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:45)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

                          at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:52)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:275)

                          at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:327)

                          at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:239)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.component.invocationmetrics.WaitTimeInterceptor.processInvocation(WaitTimeInterceptor.java:43)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:100)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:66)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:54)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:64)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:356)

                          at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:636)

                          at org.jboss.invocation.AccessCheckingInterceptor.processInvocation(AccessCheckingInterceptor.java:61)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:356)

                          at org.jboss.invocation.PrivilegedWithCombinerInterceptor.processInvocation(PrivilegedWithCombinerInterceptor.java:80)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

                          at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:195)

                          at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:185)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

                          at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:73)

                          at org.arasti.kayd.controller.activities.jsf.KullanıcıAWLocal$$$view854.KullanıcıGirişiYap(Unknown Source)

                          at org.arasti.kayd.managedbeans.reglog.LoginService.login(LoginService.java:18)

                          at org.arasti.kayd.managedbeans.reglog.LoginView.girişYap(LoginView.java:36)

                          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

                          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                          at java.lang.reflect.Method.invoke(Method.java:498)

                          at com.sun.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:181)

                          at com.sun.el.parser.AstValue.invoke(AstValue.java:289)

                          at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:304)

                          at org.jboss.weld.util.el.ForwardingMethodExpression.invoke(ForwardingMethodExpression.java:40)

                          at org.jboss.weld.el.WeldMethodExpression.invoke(WeldMethodExpression.java:50)

                          at org.jboss.weld.util.el.ForwardingMethodExpression.invoke(ForwardingMethodExpression.java:40)

                          at org.jboss.weld.el.WeldMethodExpression.invoke(WeldMethodExpression.java:50)

                          at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)

                          at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:87)

                          at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)

                          at org.primefaces.application.DialogActionListener.processAction(DialogActionListener.java:45)

                          at javax.faces.component.UICommand.broadcast(UICommand.java:315)

                          at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:790)

                          at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1282)

                          at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)

                          at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)

                          at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:198)

                          at javax.faces.webapp.FacesServlet.service(FacesServlet.java:658)

                          at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)

                          at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129)

                          at io.undertow.websockets.jsr.JsrWebSocketFilter.doFilter(JsrWebSocketFilter.java:129)

                          at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60)

                          at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)

                          at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84)

                          at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)

                          at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)

                          at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)

                          at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

                          at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)

                          at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)

                          at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

                          at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)

                          at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)

                          at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)

                          at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)

                          at io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)

                          at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)

                          at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

                          at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)

                          at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

                          at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

                          at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:284)

                          at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:263)

                          at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)

                          at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:174)

                          at io.undertow.server.Connectors.executeRootHandler(Connectors.java:202)

                          at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:793)

                          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

                          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

                          at java.lang.Thread.run(Thread.java:745)

                      Caused by: java.lang.ClassCastException: org.arasti.kayd.model.entities.ana.Kullanıcı cannot be cast to org.arasti.kayd.model.entities.ana.Kullanıcı

                          at org.arasti.kayd.data.Implemantors.KayıtVeriİşleyici.KullanıcıNesnesiDBGetir(KayıtVeriİşleyici.java:726)

                          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

                          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                          at java.lang.reflect.Method.invoke(Method.java:498)

                          at org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:437)

                          at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.delegateInterception(Jsr299BindingsInterceptor.java:70)

                          at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:80)

                          at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:93)

                          at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:437)

                          at org.arasti.kayd.util.interceptors.DataMethodInvocationLogInterceptor.intercept(DataMethodInvocationLogInterceptor.java:16)

                          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

                          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                          at java.lang.reflect.Method.invoke(Method.java:498)

                          at org.jboss.as.ee.component.ManagedReferenceLifecycleMethodInterceptor.processInvocation(ManagedReferenceLifecycleMethodInterceptor.java:89)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:437)

                          at org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:64)

                          at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:83)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:45)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

                          at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:52)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:275)

                          ... 161 more

                       

                      2016-10-10 08:24:40,992 WARNING [javax.enterprise.resource.webcontainer.jsf.lifecycle] (default task-24) #{loginView.girişYap}: javax.ejb.EJBException: java.lang.ClassCastException: org.arasti.kayd.model.entities.ana.Kullanıcı cannot be cast to org.arasti.kayd.model.entities.ana.Kullanıcı: javax.faces.FacesException: #{loginView.girişYap}: javax.ejb.EJBException: java.lang.ClassCastException: org.arasti.kayd.model.entities.ana.Kullanıcı cannot be cast to org.arasti.kayd.model.entities.ana.Kullanıcı

                          at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:118)

                          at org.primefaces.application.DialogActionListener.processAction(DialogActionListener.java:45)

                          at javax.faces.component.UICommand.broadcast(UICommand.java:315)

                          at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:790)

                          at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1282)

                          at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)

                          at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)

                          at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:198)

                          at javax.faces.webapp.FacesServlet.service(FacesServlet.java:658)

                          at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)

                          at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129)

                          at io.undertow.websockets.jsr.JsrWebSocketFilter.doFilter(JsrWebSocketFilter.java:129)

                          at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60)

                          at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)

                          at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84)

                          at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)

                          at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)

                          at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)

                          at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

                          at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)

                          at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)

                          at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

                          at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)

                          at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)

                          at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)

                          at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)

                          at io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)

                          at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)

                          at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

                          at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)

                          at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

                          at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

                          at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:284)

                          at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:263)

                          at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)

                          at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:174)

                          at io.undertow.server.Connectors.executeRootHandler(Connectors.java:202)

                          at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:793)

                          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

                          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

                          at java.lang.Thread.run(Thread.java:745)

                      Caused by: javax.faces.el.EvaluationException: javax.ejb.EJBException: java.lang.ClassCastException: org.arasti.kayd.model.entities.ana.Kullanıcı cannot be cast to org.arasti.kayd.model.entities.ana.Kullanıcı

                          at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:101)

                          at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)

                          ... 40 more

                      Caused by: javax.ejb.EJBException: java.lang.ClassCastException: org.arasti.kayd.model.entities.ana.Kullanıcı cannot be cast to org.arasti.kayd.model.entities.ana.Kullanıcı

                          at org.jboss.as.ejb3.tx.CMTTxInterceptor.handleExceptionInOurTx(CMTTxInterceptor.java:187)

                          at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:277)

                          at org.jboss.as.ejb3.tx.CMTTxInterceptor.requiresNew(CMTTxInterceptor.java:344)

                          at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:241)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.component.invocationmetrics.WaitTimeInterceptor.processInvocation(WaitTimeInterceptor.java:43)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:100)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:66)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:54)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:64)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:356)

                          at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:636)

                          at org.jboss.invocation.AccessCheckingInterceptor.processInvocation(AccessCheckingInterceptor.java:61)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:356)

                          at org.jboss.invocation.PrivilegedWithCombinerInterceptor.processInvocation(PrivilegedWithCombinerInterceptor.java:80)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

                          at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:195)

                          at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:185)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

                          at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:73)

                          at org.arasti.kayd.data.Interfaces.KayıtBileşenİşlemleriLocal$$$view877.KullanıcıNesnesiDBGetir(Unknown Source)

                          at org.arasti.kayd.controller.activities.jsf.KullanıcıAWJSF.KullanıcıGirişiYap(KullanıcıAWJSF.java:377)

                          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

                          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                          at java.lang.reflect.Method.invoke(Method.java:498)

                          at org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:437)

                          at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.delegateInterception(Jsr299BindingsInterceptor.java:70)

                          at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:80)

                          at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:93)

                          at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:437)

                          at org.arasti.kayd.util.interceptors.ActivityMethodInvocationLogInterceptor.intercept(ActivityMethodInvocationLogInterceptor.java:16)

                          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

                          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                          at java.lang.reflect.Method.invoke(Method.java:498)

                          at org.jboss.as.ee.component.ManagedReferenceLifecycleMethodInterceptor.processInvocation(ManagedReferenceLifecycleMethodInterceptor.java:89)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:437)

                          at org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:64)

                          at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:83)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:45)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

                          at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:52)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:275)

                          at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:327)

                          at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:239)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.component.invocationmetrics.WaitTimeInterceptor.processInvocation(WaitTimeInterceptor.java:43)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:100)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:66)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:54)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:64)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:356)

                          at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:636)

                          at org.jboss.invocation.AccessCheckingInterceptor.processInvocation(AccessCheckingInterceptor.java:61)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:356)

                          at org.jboss.invocation.PrivilegedWithCombinerInterceptor.processInvocation(PrivilegedWithCombinerInterceptor.java:80)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

                          at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:195)

                          at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:185)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

                          at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:73)

                          at org.arasti.kayd.controller.activities.jsf.KullanıcıAWLocal$$$view854.KullanıcıGirişiYap(Unknown Source)

                          at org.arasti.kayd.managedbeans.reglog.LoginService.login(LoginService.java:18)

                          at org.arasti.kayd.managedbeans.reglog.LoginView.girişYap(LoginView.java:36)

                          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

                          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                          at java.lang.reflect.Method.invoke(Method.java:498)

                          at com.sun.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:181)

                          at com.sun.el.parser.AstValue.invoke(AstValue.java:289)

                          at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:304)

                          at org.jboss.weld.util.el.ForwardingMethodExpression.invoke(ForwardingMethodExpression.java:40)

                          at org.jboss.weld.el.WeldMethodExpression.invoke(WeldMethodExpression.java:50)

                          at org.jboss.weld.util.el.ForwardingMethodExpression.invoke(ForwardingMethodExpression.java:40)

                          at org.jboss.weld.el.WeldMethodExpression.invoke(WeldMethodExpression.java:50)

                          at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)

                          at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:87)

                          ... 41 more

                      Caused by: java.lang.ClassCastException: org.arasti.kayd.model.entities.ana.Kullanıcı cannot be cast to org.arasti.kayd.model.entities.ana.Kullanıcı

                          at org.arasti.kayd.data.Implemantors.KayıtVeriİşleyici.KullanıcıNesnesiDBGetir(KayıtVeriİşleyici.java:726)

                          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

                          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                          at java.lang.reflect.Method.invoke(Method.java:498)

                          at org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:437)

                          at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.delegateInterception(Jsr299BindingsInterceptor.java:70)

                          at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:80)

                          at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:93)

                          at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:437)

                          at org.arasti.kayd.util.interceptors.DataMethodInvocationLogInterceptor.intercept(DataMethodInvocationLogInterceptor.java:16)

                          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

                          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                          at java.lang.reflect.Method.invoke(Method.java:498)

                          at org.jboss.as.ee.component.ManagedReferenceLifecycleMethodInterceptor.processInvocation(ManagedReferenceLifecycleMethodInterceptor.java:89)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:437)

                          at org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:64)

                          at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:83)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:45)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

                          at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:52)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:275)

                          ... 161 more

                       

                      2016-10-10 08:24:40,997 SEVERE [javax.enterprise.resource.webcontainer.jsf.context] (default task-24) javax.faces.el.EvaluationException: javax.ejb.EJBException: java.lang.ClassCastException: org.arasti.kayd.model.entities.ana.Kullanıcı cannot be cast to org.arasti.kayd.model.entities.ana.Kullanıcı

                          at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:101)

                          at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)

                          at org.primefaces.application.DialogActionListener.processAction(DialogActionListener.java:45)

                          at javax.faces.component.UICommand.broadcast(UICommand.java:315)

                          at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:790)

                          at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1282)

                          at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)

                          at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)

                          at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:198)

                          at javax.faces.webapp.FacesServlet.service(FacesServlet.java:658)

                          at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)

                          at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129)

                          at io.undertow.websockets.jsr.JsrWebSocketFilter.doFilter(JsrWebSocketFilter.java:129)

                          at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60)

                          at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)

                          at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84)

                          at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)

                          at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)

                          at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)

                          at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

                          at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)

                          at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)

                          at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

                          at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)

                          at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)

                          at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)

                          at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)

                          at io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)

                          at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)

                          at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

                          at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)

                          at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

                          at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

                          at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:284)

                          at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:263)

                          at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)

                          at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:174)

                          at io.undertow.server.Connectors.executeRootHandler(Connectors.java:202)

                          at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:793)

                          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

                          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

                          at java.lang.Thread.run(Thread.java:745)

                      Caused by: javax.ejb.EJBException: java.lang.ClassCastException: org.arasti.kayd.model.entities.ana.Kullanıcı cannot be cast to org.arasti.kayd.model.entities.ana.Kullanıcı

                          at org.jboss.as.ejb3.tx.CMTTxInterceptor.handleExceptionInOurTx(CMTTxInterceptor.java:187)

                          at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:277)

                          at org.jboss.as.ejb3.tx.CMTTxInterceptor.requiresNew(CMTTxInterceptor.java:344)

                          at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:241)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.component.invocationmetrics.WaitTimeInterceptor.processInvocation(WaitTimeInterceptor.java:43)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:100)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:66)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:54)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:64)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:356)

                          at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:636)

                          at org.jboss.invocation.AccessCheckingInterceptor.processInvocation(AccessCheckingInterceptor.java:61)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:356)

                          at org.jboss.invocation.PrivilegedWithCombinerInterceptor.processInvocation(PrivilegedWithCombinerInterceptor.java:80)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

                          at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:195)

                          at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:185)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

                          at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:73)

                          at org.arasti.kayd.data.Interfaces.KayıtBileşenİşlemleriLocal$$$view877.KullanıcıNesnesiDBGetir(Unknown Source)

                          at org.arasti.kayd.controller.activities.jsf.KullanıcıAWJSF.KullanıcıGirişiYap(KullanıcıAWJSF.java:377)

                          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

                          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                          at java.lang.reflect.Method.invoke(Method.java:498)

                          at org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:437)

                          at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.delegateInterception(Jsr299BindingsInterceptor.java:70)

                          at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:80)

                          at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:93)

                          at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:437)

                          at org.arasti.kayd.util.interceptors.ActivityMethodInvocationLogInterceptor.intercept(ActivityMethodInvocationLogInterceptor.java:16)

                          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

                          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                          at java.lang.reflect.Method.invoke(Method.java:498)

                          at org.jboss.as.ee.component.ManagedReferenceLifecycleMethodInterceptor.processInvocation(ManagedReferenceLifecycleMethodInterceptor.java:89)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:437)

                          at org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:64)

                          at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:83)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:45)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

                          at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:52)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:275)

                          at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:327)

                          at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:239)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.component.invocationmetrics.WaitTimeInterceptor.processInvocation(WaitTimeInterceptor.java:43)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:100)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:66)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:54)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:64)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:356)

                          at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:636)

                          at org.jboss.invocation.AccessCheckingInterceptor.processInvocation(AccessCheckingInterceptor.java:61)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:356)

                          at org.jboss.invocation.PrivilegedWithCombinerInterceptor.processInvocation(PrivilegedWithCombinerInterceptor.java:80)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

                          at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:195)

                          at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:185)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

                          at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:73)

                          at org.arasti.kayd.controller.activities.jsf.KullanıcıAWLocal$$$view854.KullanıcıGirişiYap(Unknown Source)

                          at org.arasti.kayd.managedbeans.reglog.LoginService.login(LoginService.java:18)

                          at org.arasti.kayd.managedbeans.reglog.LoginView.girişYap(LoginView.java:36)

                          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

                          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                          at java.lang.reflect.Method.invoke(Method.java:498)

                          at com.sun.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:181)

                          at com.sun.el.parser.AstValue.invoke(AstValue.java:289)

                          at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:304)

                          at org.jboss.weld.util.el.ForwardingMethodExpression.invoke(ForwardingMethodExpression.java:40)

                          at org.jboss.weld.el.WeldMethodExpression.invoke(WeldMethodExpression.java:50)

                          at org.jboss.weld.util.el.ForwardingMethodExpression.invoke(ForwardingMethodExpression.java:40)

                          at org.jboss.weld.el.WeldMethodExpression.invoke(WeldMethodExpression.java:50)

                          at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)

                          at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:87)

                          ... 41 more

                      Caused by: java.lang.ClassCastException: org.arasti.kayd.model.entities.ana.Kullanıcı cannot be cast to org.arasti.kayd.model.entities.ana.Kullanıcı

                          at org.arasti.kayd.data.Implemantors.KayıtVeriİşleyici.KullanıcıNesnesiDBGetir(KayıtVeriİşleyici.java:726)

                          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

                          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                          at java.lang.reflect.Method.invoke(Method.java:498)

                          at org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:437)

                          at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.delegateInterception(Jsr299BindingsInterceptor.java:70)

                          at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:80)

                          at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:93)

                          at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:437)

                          at org.arasti.kayd.util.interceptors.DataMethodInvocationLogInterceptor.intercept(DataMethodInvocationLogInterceptor.java:16)

                          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

                          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                          at java.lang.reflect.Method.invoke(Method.java:498)

                          at org.jboss.as.ee.component.ManagedReferenceLifecycleMethodInterceptor.processInvocation(ManagedReferenceLifecycleMethodInterceptor.java:89)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:437)

                          at org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:64)

                          at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:83)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:45)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

                          at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:52)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

                          at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:275)

                          ... 161 more

                      • 9. Re: Wildfly 10, standalone resource adapter and App.Ear deployment ClassCastException
                        jaikiran pai Master

                        Still a bit early for me to figure out what the issue might be, but :

                        Caused by: java.lang.ClassCastException: org.arasti.kayd.model.entities.ana.Kullanıcı cannot be cast to org.arasti.kayd.model.entities.ana.Kullanıcı

                            at org.arasti.kayd.data.Implemantors.KayıtVeriİşleyici.KullanıcıNesnesiDBGetir(KayıtVeriİşleyici.java:726)

                         

                        where exactly is the org.arasti.kayd.data.Implemantors.KayıtVeriİşleyici class located (in which jar) and what does its code in KullanıcıNesnesiDBGetir method look like?

                        • 10. Re: Wildfly 10, standalone resource adapter and App.Ear deployment ClassCastException
                          ebuzer taha kanat Newbie

                          it is in ejb.jar and it look like this:

                           

                           

                          @TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
                          public Kullanıcı KullanıcıNesnesiDBGetir(Long id){
                          
                          Kullanıcı k = null;
                          try {
                          infoEvent.fire(new DataLogEvent("Kullanıcı nesnesi getiriliyor"));
                          
                          Query<Kullanıcı> q = pm.newQuery(Kullanıcı.class);
                          q.setFilter("id==istekid");
                          q.setUnique(true);
                          q.declareParameters("long istekid");
                          k = (Kullanıcı) q.execute(id);
                          
                          } catch (JDODataStoreException e) {
                          
                          exceptionEvent.fire(new DataLogEvent(this.getClass().getName() + " da "
                          + Thread.currentThread().getStackTrace()[1].getMethodName() + " methodu", e));
                          
                          } catch (NucleusDataStoreException e) {
                          exceptionEvent.fire(new DataLogEvent(this.getClass().getName() + " da "
                          + Thread.currentThread().getStackTrace()[1].getMethodName() + " methodu", e));
                          }
                          return k;
                          }
                          

                           

                          at the caller bean:

                           

                          //adapter resource injection

                          @Resource(lookup = "java:/KaydDB-PU")
                           private PersistenceManagerFactory pmf;
                          


                          //before call 

                          pm = pmf.getPersistenceManager();
                           kbi.setPm(pm);
                          

                          //at the call

                          Kullanıcı k = kbi.KullanıcıNesnesiDBGetir(kendi_ID);
                          


                          //after call returns

                          pm.close();
                          


                          But i don't think this is relevant if all this was the source of problem it should never be working. It works at the initial deploy and all the other deploys if i reload the AS. This is clearly a classloader issue. But i don't have a solution .

                          • 11. Re: Wildfly 10, standalone resource adapter and App.Ear deployment ClassCastException
                            ebuzer taha kanat Newbie
                            Query<Kullanıcı> q = pm.newQuery(Kullanıcı.class); 
                            

                            This the where class cast exception comes from i know that. pm comes from pmf which is at resource adapter.