[jboss-jira] [JBoss JIRA] (HIBERNATE-104) useless stacktrace

Steve Ebersole (JIRA) issues at jboss.org
Thu Nov 19 10:41:00 EST 2015


    [ https://issues.jboss.org/browse/HIBERNATE-104?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13130933#comment-13130933 ] 

Steve Ebersole commented on HIBERNATE-104:
------------------------------------------

This is not the correct project to report Hibernate issues under. This Jira project is for reporting issues in the integration between Hibernate and WildFly. To report issues in Hibernate, please use https://hibernate.atlassian.net. Thanks.

You really mean chains of nested exceptions, not stack traces..  Anyway, stack-traces and nested exceptions may be useless to you but are often useful to developer to help track down problems you report.  Hard to say here as you say there is a "lot" of information but don't show it.

> useless stacktrace
> ------------------
>
>                 Key: HIBERNATE-104
>                 URL: https://issues.jboss.org/browse/HIBERNATE-104
>             Project: Hibernate Integration
>          Issue Type: Bug
>         Environment: jboss-4.2.2.GA, linux 32bit
>            Reporter: arne anka
>            Assignee: Steve Ebersole
>
> when trying
> entityManager.merge(myUser);
> entityManager.flush();
> i get a very long list of recurrent stacktraces. it boils down to two messages:
> Caused by: org.hibernate.PropertyAccessException: IllegalArgumentException occurred calling getter of my.class.roleId
> 	at org.hibernate.property.BasicPropertyAccessor$BasicGetter.get(BasicPropertyAccessor.java:171)
> 	at org.hibernate.tuple.entity.AbstractEntityTuplizer.getIdentifier(AbstractEntityTuplizer.java:183)
> 	at org.hibernate.persister.entity.AbstractEntityPersister.getIdentifier(AbstractEntityPersister.java:3591)
> 	at org.hibernate.persister.entity.AbstractEntityPersister.isTransient(AbstractEntityPersister.java:3307)
> 	at org.hibernate.engine.ForeignKeys.isTransient(ForeignKeys.java:181)
> 	at org.hibernate.engine.ForeignKeys.getEntityIdentifierIfNotUnsaved(ForeignKeys.java:218)
> 	at org.hibernate.type.EntityType.getIdentifier(EntityType.java:397)
> 	at org.hibernate.type.EntityType.replace(EntityType.java:253)
> 	at org.hibernate.type.CollectionType.replaceElements(CollectionType.java:451)
> 	at org.hibernate.type.Collecti
> 14:46:07,362 INFO  [STDOUT] onType.replace(CollectionType.java:518)
> 	at org.hibernate.type.TypeFactory.replace(TypeFactory.java:482)
> 	at org.hibernate.event.def.DefaultMergeEventListener.copyValues(DefaultMergeEventListener.java:340)
> 	at org.hibernate.event.def.DefaultMergeEventListener.entityIsDetached(DefaultMergeEventListener.java:267)
> 	at org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:120)
> 	at org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:53)
> 	at org.hibernate.impl.SessionImpl.fireMerge(SessionImpl.java:677)
> 	at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:661)
> 	at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:665)
> 	at org.hibernate.ejb.AbstractEntityManagerImpl.merge(AbstractEntityManagerImpl.java:227)
> 	... 74 more
> and
> Caused by: java.lang.IllegalArgumentException: java.lang.ClassCastException at 661744
> 	at sun.reflect.GeneratedMethodAccessor2266.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:585)
> 	at org.hibernate.property.BasicPropertyAccessor$BasicGetter.get(BasicPropertyAccessor.java:145)
> 	... 92 more
> the property my.class.roleId is defined as Integer, setter and getter expect or return an Integer.
> i can't see, what type hibernate expects as argument and i can't see in what type hibernate tries to cast.
> - why does the stacktrace not mention the argument type hibernate expects?
> - why does the stacktrace not mention in which type hibernate tries to cast?
> with it's current level of null-information ist that _very_ long, confusing and time consuming stacktrace worse then useless.
> i am completely unable to deduce any way to remedy a possible bug in my code or circumvent a possible bug in hibernate.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list