[Beginners Corner] - JBoss need to be restarted after redeploy
by javatwo
After starting JBoss and deploying an application, it works fine. But if I re-deploy the application without making any changes, I got the following exception while running the application:
18:08:59,519 ERROR [STDERR] Caused by: org.hibernate.PropertyAccessException: IllegalArgumentException occurred calling getter of package.Student.id
18:08:59,519 ERROR [STDERR] at org.hibernate.property.BasicPropertyAccessor$BasicGetter.get(BasicPropertyAccessor.java:171)
18:08:59,519 ERROR [STDERR] at org.hibernate.tuple.entity.AbstractEntityTuplizer.getIdentifier(AbstractEntityTuplizer.java:183)
18:08:59,519 ERROR [STDERR] at org.hibernate.persister.entity.AbstractEntityPersister.getIdentifier(AbstractEntityPersister.java:3524)
18:08:59,529 ERROR [STDERR] at org.hibernate.persister.entity.AbstractEntityPersister.isTransient(AbstractEntityPersister.java:3240)
18:08:59,529 ERROR [STDERR] at org.hibernate.engine.ForeignKeys.isTransient(ForeignKeys.java:181)
18:08:59,529 ERROR [STDERR] at org.hibernate.engine.ForeignKeys.getEntityIdentifierIfNotUnsaved(ForeignKeys.java:218)
18:08:59,529 ERROR [STDERR] at org.hibernate.type.EntityType.getIdentifier(EntityType.java:108)
18:08:59,529 ERROR [STDERR] at org.hibernate.type.ManyToOneType.nullSafeSet(ManyToOneType.java:87)
18:08:59,529 ERROR [STDERR] at org.hibernate.loader.Loader.bindPositionalParameters(Loader.java:1513)
18:08:59,529 ERROR [STDERR] at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1575)
18:08:59,529 ERROR [STDERR] at org.hibernate.loader.Loader.doQuery(Loader.java:661)
18:08:59,529 ERROR [STDERR] at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)
18:08:59,529 ERROR [STDERR] at org.hibernate.loader.Loader.doList(Loader.java:2144)
18:08:59,529 ERROR [STDERR] at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2028)
18:08:59,529 ERROR [STDERR] at org.hibernate.loader.Loader.list(Loader.java:2023)
18:08:59,529 ERROR [STDERR] at org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:95)
18:08:59,529 ERROR [STDERR] at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1569)
18:08:59,529 ERROR [STDERR] at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:283)
18:08:59,539 ERROR [STDERR] at org.hibernate.impl.CriteriaImpl.uniqueResult(CriteriaImpl.java:305)
----------
if I restart JBoss, everything works fine.
What could be the problem? Thanks for help.
Dave
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027470#4027470
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027470
19Â years, 1Â month
[JBoss jBPM] - Jbpm mapping file issue
by Olivier_Debels
Hi,
When deploying jbpm.jar in a jboss environment we saw the following issue popping up.
In the hibernate mapping files a typedef is used (string_max), which is only specified in hibernate.queries.hbm.xml. Other mapping files are using this typedef (Comment, Timer,...).
This has as consequence that the hibernate.queries.hbm.xml mapping file must be read before the other, otherwise you get exceptions like:
| org.hibernate.MappingException: Could not determine type for: string_max, for columns: [org.hibernate.mapping.Column(DESCRIPTION_)]
| at org.hibernate.mapping.SimpleValue.getType(SimpleVa lue.java:265)
|
Hibernate is at this moment not smart enough to determine the order based on typedefs, so jbpm mapping files must be robust enough to handle this.
What is a good solution for this? Repeating the typedef in all files where it is needed is a possibility.
Any thoughts?
Olivier.
Any ideas?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027456#4027456
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027456
19Â years, 1Â month
[JBoss jBPM] - Jbpm mapping file issue
by Olivier_Debels
Hi,
When deploying jbpm.jar in a jboss environment we saw the following issue popping up.
In the hibernate mapping files a typedef is used (string_max), which is only specified in hibernate.queries.hbm.xml. Other mapping files are using this typedef (Comment, Timer,...).
This has as consequence that the hibernate.queries.hbm.xml mapping file must be read before the other, otherwise you get exceptions like:
| org.hibernate.MappingException: Could not determine type for: string_max, for columns: [org.hibernate.mapping.Column(DESCRIPTION_)]
| at org.hibernate.mapping.SimpleValue.getType(SimpleVa lue.java:265)
|
Hibernate is at this moment not smart enough to determine the order based on typedefs, so jbpm mapping files must be robust enough to handle this.
What is a good solution for this? Repeating the typedef in all files where it is needed is a possibility.
Any thoughts?
Olivier.
Any ideas?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027454#4027454
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027454
19Â years, 1Â month