java.lang.ClassCastException: java.lang.String

Oracle Community | 3004 | 1 decade 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

    ClassCastException in PersistenceManagerImpl.getObjectByIdFilter

    Oracle Community | 1 decade ago | 3004
    java.lang.ClassCastException: java.lang.String
  2. 0

    class cast exception

    Oracle Community | 1 decade ago | 3004
    java.lang.ClassCastException: java.lang.String
  3. 0

    classcastexception

    Oracle Community | 1 decade ago | 3004
    java.lang.ClassCastException: com.mergentonline.common.dao.CompanyPK 13:36:57,619 ERROR [STDERR]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassCastException

      java.lang.String

      at com.solarmetric.kodo.runtime.PersistenceManagerImpl.getObjectByIdFilter()
    2. com.solarmetric.kodo
      PersistenceManagerImpl.getObjectById
      1. com.solarmetric.kodo.runtime.PersistenceManagerImpl.getObjectByIdFilter(PersistenceManagerImpl.java:842)
      2. com.solarmetric.kodo.runtime.PersistenceManagerImpl.getObjectById(PersistenceManagerImpl.java:736)
      2 frames
    3. com.commercehub.core
      XRServiceTest.testGetPartnerVal
      1. com.commercehub.core.xr.XRService.getHubVal(XRService.java:63)
      2. com.commercehub.core.xr.XRServiceTest.testGetPartnerVal(XRServiceTest.java:29)
      2 frames
    4. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    5. JUnit
      TestRunner.run
      1. junit.framework.TestCase.runTest(TestCase.java:166)
      2. junit.framework.TestCase.runBare(TestCase.java:140)
      3. junit.framework.TestResult$1.protect(TestResult.java:106)
      4. junit.framework.TestResult.runProtected(TestResult.java:124)
      5. junit.framework.TestResult.run(TestResult.java:109)
      6. junit.framework.TestCase.run(TestCase.java:131)
      7. junit.framework.TestSuite.runTest(TestSuite.java:173)
      8. junit.framework.TestSuite.run(TestSuite.java:168)
      9. junit.textui.TestRunner.doRun(TestRunner.java:74)
      10. junit.textui.TestRunner.run(TestRunner.java:200)
      10 frames
    6. com.commercehub.core
      XRServiceTest.main
      1. com.commercehub.core.xr.XRServiceTest.main(XRServiceTest.java:100)
      1 frame