java.lang.ClassCastException: org.joda.time.DateTime cannot be cast to java.lang.String

GitHub | aftnix | 2 months ago
  1. 0

    Failed to build solr index using Pig

    GitHub | 2 months ago | aftnix
    java.lang.ClassCastException: org.joda.time.DateTime cannot be cast to java.lang.String
  2. 0

    {{GrailsDomainConfigurationUtil}} expects to be able to cast {{UserType}} implementations to {{GroovyObject}} which is not possible if the {{UserType}} is written in Java. For example: {code} class PersistentThing { org.joda.time.DateTime timestamp static embedded = ['timestamp'] static mapping = { timestamp type: org.joda.time.contrib.hibernate.PersistentDateTimeTZ } } {code} Causes the stack trace: {code} java.lang.ClassCastException: org.joda.time.DateTime cannot be cast to groovy.lang.GroovyObject at org.codehaus.groovy.grails.commons.GrailsDomainConfigurationUtil.evaluateConstraints(GrailsDomainConfigurationUtil.java:319) at org.codehaus.groovy.grails.commons.DefaultGrailsDomainClassProperty$ComponentDomainClass.<init>(DefaultGrailsDomainClassProperty.java:496) at org.codehaus.groovy.grails.commons.DefaultGrailsDomainClassProperty.setEmbedded(DefaultGrailsDomainClassProperty.java:442) at org.codehaus.groovy.grails.commons.DefaultGrailsDomainClass.establishDomainClassRelationship(DefaultGrailsDomainClass.java:455) at org.codehaus.groovy.grails.commons.DefaultGrailsDomainClass.establishRelationships(DefaultGrailsDomainClass.java:241) at org.codehaus.groovy.grails.commons.DefaultGrailsDomainClass.<init>(DefaultGrailsDomainClass.java:98) at org.codehaus.groovy.grails.commons.DomainClassArtefactHandler.newArtefactClass(DomainClassArtefactHandler.java:34) at org.codehaus.groovy.grails.commons.DefaultGrailsApplication.addArtefact(DefaultGrailsApplication.java:653) at org.codehaus.groovy.grails.commons.DefaultGrailsApplication.configureLoadedClasses(DefaultGrailsApplication.java:331) at org.codehaus.groovy.grails.commons.DefaultGrailsApplication.initialise(DefaultGrailsApplication.java:859) {code}

    Grails JIRA | 8 years ago | Robert Fletcher
    java.lang.ClassCastException: org.joda.time.DateTime cannot be cast to groovy.lang.GroovyObject
  3. 0

    Cast error serializing Joda Datetime

    GitHub | 3 months ago | mkhsueh
    java.lang.ClassCastException: org.joda.time.DateTime cannot be cast to java.lang.Long
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Bug ID: JDK-6499662 "java.lang.ClassCastException: cannot be cast to java.lang.String" happens from time to time

    sun.com | 4 months ago
    java.lang.ClassCastException: cannot be cast to java.lang.String
  6. 0

    Bug ID: JDK-6499662 "java.lang.ClassCastException: cannot be cast to java.lang.String" happens from time to time

    sun.com | 4 months ago
    java.lang.ClassCastException: cannot be cast to java.lang.String

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

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassCastException

      org.joda.time.DateTime cannot be cast to java.lang.String

      at org.apache.pig.backend.hadoop.executionengine.tez.plan.operator.POStoreTez.getNextTuple()
    2. org.apache.pig
      PigProcessor.run
      1. org.apache.pig.backend.hadoop.executionengine.tez.plan.operator.POStoreTez.getNextTuple(POStoreTez.java:148)
      2. org.apache.pig.backend.hadoop.executionengine.tez.runtime.PigProcessor.runPipeline(PigProcessor.java:376)
      3. org.apache.pig.backend.hadoop.executionengine.tez.runtime.PigProcessor.run(PigProcessor.java:241)
      3 frames
    3. org.apache.tez
      TezTaskRunner$TaskRunnerCallable$1.run
      1. org.apache.tez.runtime.LogicalIOProcessorRuntimeTask.run(LogicalIOProcessorRuntimeTask.java:347)
      2. org.apache.tez.runtime.task.TezTaskRunner$TaskRunnerCallable$1.run(TezTaskRunner.java:194)
      3. org.apache.tez.runtime.task.TezTaskRunner$TaskRunnerCallable$1.run(TezTaskRunner.java:185)
      3 frames