[JBoss JIRA] Created: (JBXB-150) Inconsistent jaxb api dependency
by Scott M Stark (JIRA)
Inconsistent jaxb api dependency
--------------------------------
Key: JBXB-150
URL: https://jira.jboss.org/jira/browse/JBXB-150
Project: JBoss XML Binding (JBossXB)
Issue Type: Feature Request
Affects Versions: JBossXB-2.0.0.CR11
Reporter: Scott M Stark
Fix For: JBossXB-2.0.0.CR13
The jbossxb jaxb api dependency is:
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.1</version>
<scope>compile</scope>
</dependency>
but it needs to be updated to be consistent with what we are validating in jbossas as part of the tck:
<dependency>
<groupId>sun-jaxb</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.1.4</version>
</dependency>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 4 months
[JBoss JIRA] Created: (JBAS-5923) Weak hash map usage in UnifiedInvokerHAProxy is not thread safe
by Galder Zamarreno (JIRA)
Weak hash map usage in UnifiedInvokerHAProxy is not thread safe
---------------------------------------------------------------
Key: JBAS-5923
URL: https://jira.jboss.org/jira/browse/JBAS-5923
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Clustering, Transaction Manager (JBossTM)
Affects Versions: JBossAS-4.2.3.GA, JBossAS-5.0.0.CR1
Reporter: Galder Zamarreno
Assignee: Galder Zamarreno
txFailoverAuthorizations weak hashmap that is now also used for
maintaining transaction stickyness was created as an unsynchronized
WeakHashMap and this was causing issues.
It was not enough to synchronise on the tpc (key of map) whenever
we manipulated it because two threads, trying to store different tpcs
could end up trying to resize the map and as a result, key value
pairs could easily dissapear from the hash map.
This is extremely confusing because we thought the disappearance
was due to garbage collection.
>From now on, we'll be using a Collections.synchronizedMap(new WeakHashMap());
instead. Thanks to Adrian for the help debugging this.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 4 months
[JBoss JIRA] Created: (HIBERNATE-104) useless stacktrace
by arne anka (JIRA)
useless stacktrace
------------------
Key: HIBERNATE-104
URL: https://jira.jboss.org/jira/browse/HIBERNATE-104
Project: Hibernate
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@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 is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 4 months