Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by jluc2808
, 1 year ago
org.yamj.common.type.StatusType cannot be cast to java.lang.String
via hibernate.org by Unknown author, 2 years ago
via Stack Overflow by Pankaj
, 2 years ago
[Ljava.lang.String; cannot be cast to java.lang.String
via Hibernate JIRA by Jan Snelders, 2 years ago
java.lang.ClassCastException: org.yamj.common.type.StatusType cannot be cast to java.lang.String	at org.hibernate.type.descriptor.java.StringTypeDescriptor.unwrap(StringTypeDescriptor.java:22)	at org.hibernate.type.descriptor.sql.VarcharTypeDescriptor$1.doBind(VarcharTypeDescriptor.java:46)	at org.hibernate.type.descriptor.sql.BasicBinder.bind(BasicBinder.java:74)	at org.hibernate.type.AbstractStandardBasicType.nullSafeSet(AbstractStandardBasicType.java:253)	at org.hibernate.type.AbstractStandardBasicType.nullSafeSet(AbstractStandardBasicType.java:248)	at org.hibernate.loader.Loader.bindPositionalParameters(Loader.java:2044)	at org.hibernate.loader.Loader.bindParameterValues(Loader.java:2013)	at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1943)	at org.hibernate.loader.Loader.executeQueryStatement(Loader.java:1896)	at org.hibernate.loader.Loader.executeQueryStatement(Loader.java:1874)	at org.hibernate.loader.Loader.doQuery(Loader.java:919)	at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:336)	at org.hibernate.loader.Loader.doList(Loader.java:2610)	at org.hibernate.loader.Loader.doList(Loader.java:2593)	at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2422)	at org.hibernate.loader.Loader.list(Loader.java:2417)	at org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:109)	at org.hibernate.internal.SessionImpl.list(SessionImpl.java:1787)	at org.hibernate.internal.CriteriaImpl.list(CriteriaImpl.java:363)	at org.yamj.core.database.dao.ArtworkDao.getArtworkLocatedWithCacheFilename(ArtworkDao.java:149)	at org.yamj.core.database.service.ArtworkStorageService.checkArtworkSanity(ArtworkStorageService.java:275)	at org.yamj.core.database.service.ArtworkStorageService$$FastClassBySpringCGLIB$$9e265e32.invoke()	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:720)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)	at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)	at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:655)	at org.yamj.core.database.service.ArtworkStorageService$$EnhancerBySpringCGLIB$$9fe6a45a.checkArtworkSanity()	at org.yamj.core.service.tasks.ArtworkSanityTask.execute(ArtworkSanityTask.java:65)	at org.yamj.core.service.tasks.ExecutionTaskService.executeTask(ExecutionTaskService.java:70)	at org.yamj.core.scheduling.ExecutionTaskScheduler.executeTasks(ExecutionTaskScheduler.java:45)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)	at java.lang.reflect.Method.invoke(Unknown Source)	at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:65)	at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)	at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)	at java.util.concurrent.FutureTask.runAndReset(Unknown Source)	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source)	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)	at java.lang.Thread.run(Unknown Source)