java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to com.cinemasurvey.dao.entity.Login

Coderanch | Aarya biradar | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to com.cinemasurvey.dao.entity.Logi

    Coderanch | 3 years ago | Aarya biradar
    java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to com.cinemasurvey.dao.entity.Login
  2. 0

    java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to com.dao.entity.Login

    Coderanch | 3 years ago | Aarya biradar
    java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to .dao.entity.Login

    Root Cause Analysis

    1. java.lang.ClassCastException

      [Ljava.lang.Object; cannot be cast to com.cinemasurvey.dao.entity.Login

      at com.cinemasurvey.test.login.LoginDAOTest.hqlTest()
    2. com.cinemasurvey.test
      LoginDAOTest.hqlTest
      1. com.cinemasurvey.test.login.LoginDAOTest.hqlTest(LoginDAOTest.java:147)
      1 frame
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      4. java.lang.reflect.Method.invoke(Unknown Source)
      4 frames
    4. TestNG
      MethodInvocationHelper$1.runTestMethod
      1. org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)
      2. org.testng.internal.MethodInvocationHelper$1.runTestMethod(MethodInvocationHelper.java:200)
      2 frames
    5. Spring TestContext
      AbstractTestNGSpringContextTests.run
      1. org.springframework.test.context.testng.AbstractTestNGSpringContextTests.run(AbstractTestNGSpringContextTests.java:158)
      1 frame
    6. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      4. java.lang.reflect.Method.invoke(Unknown Source)
      4 frames
    7. TestNG
      RemoteTestNG.main
      1. org.testng.internal.MethodInvocationHelper.invokeHookable(MethodInvocationHelper.java:212)
      2. org.testng.internal.Invoker.invokeMethod(Invoker.java:707)
      3. org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
      4. org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
      5. org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
      6. org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
      7. org.testng.TestRunner.privateRun(TestRunner.java:767)
      8. org.testng.TestRunner.run(TestRunner.java:617)
      9. org.testng.SuiteRunner.runTest(SuiteRunner.java:335)
      10. org.testng.SuiteRunner.runSequentially(SuiteRunner.java:330)
      11. org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
      12. org.testng.SuiteRunner.run(SuiteRunner.java:240)
      13. org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
      14. org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
      15. org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
      16. org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
      17. org.testng.TestNG.run(TestNG.java:1057)
      18. org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:111)
      19. org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:204)
      20. org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:175)
      20 frames