-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: WeakHashMap multi thread issue
PostPosted: Wed Jun 20, 2007 12:59 pm 
Newbie

Joined: Tue Aug 23, 2005 11:38 am
Posts: 14
Question:

We are running 20 concurent Java threads using jdk 1.5 concurency package running WL 9.1 using ORACLE data source pooling. We are getting threads that never end but are active. They seem to be blocking each other trying to use WeakHashMaps. See below thread trace.

Any ideas/suggestions on what we are doing wrong????

Hibernate version:
3.2.4.SP1

Full stack trace of any exception that occurs:

"pool-1-thread-18" id=262 idx=0x80 tid=8334 prio=5 alive
at java/util/WeakHashMap.transfer([Ljava/util/WeakHashMap$Entry;[Ljava/util/WeakHashMap$Entry;)V(WeakHashMap.java:468)
at java/util/WeakHashMap.resize(I)V(WeakHashMap.java:437)
at java/util/WeakHashMap.put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;(WeakHashMap.java:410)[inlined]
at jrockit/reflect/InvocationCompiler.put(Ljava/lang/reflect/AccessibleObject;Ljrockit/reflect/CompiledCode;)V(Unknown Source)[inlined]
at jrockit/reflect/InvocationCompiler.codeFor(Ljava/lang/reflect/AccessibleObject;Ljava/lang/Class;)Ljrockit/reflect/CompiledCode;(Unknown Source)[inlined]
at jrockit/reflect/InvocationCompiler.compileInvoker(Ljava/lang/reflect/Method;)Ljrockit/reflect/MethodInvoker;(Unknown Source)[inlined]
at jrockit/reflect/MethodInvoker.compileInvoker()Ljrockit/reflect/MethodInvoker;(Unknown Source)[inlined]
at jrockit/reflect/NativeMethodInvoker.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;(Unknown Source)[optimized]
at jrockit/reflect/VirtualNativeMethodInvoker.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;(Unknown Source)
at java/lang/reflect/Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;I)Ljava/lang/Object;(Unknown Source)[inlined]
at org/hibernate/property/BasicPropertyAccessor$BasicSetter.set(Ljava/lang/Object;Ljava/lang/Object;Lorg/hibernate/engine/SessionFactoryImplementor;)V(BasicPropertyAccessor.java:74)[optimized]
at org/hibernate/tuple/component/AbstractComponentTuplizer.setPropertyValues(Ljava/lang/Object;[Ljava/lang/Object;)V(AbstractComponentTuplizer.java:81)
at org/hibernate/tuple/component/PojoComponentTuplizer.setPropertyValues(Ljava/lang/Object;[Ljava/lang/Object;)V(PojoComponentTuplizer.java:92)
at org/hibernate/type/ComponentType.setPropertyValues(Ljava/lang/Object;[Ljava/lang/Object;Lorg/hibernate/EntityMode;)V(ComponentType.java:358)
at org/hibernate/type/ComponentType.resolve(Ljava/lang/Object;Lorg/hibernate/engine/SessionImplementor;Ljava/lang/Object;)Ljava/lang/Object;(ComponentType.java:586)
at org/hibernate/engine/TwoPhaseLoad.initializeEntity(Ljava/lang/Object;ZLorg/hibernate/engine/SessionImplementor;Lorg/hibernate/event/PreLoadEvent;Lorg/hibernate/event/PostLoadEvent;)V(TwoPhaseLoad.java:116)[optimized]
at org/hibernate/loader/Loader.initializeEntitiesAndCollections(Ljava/util/List;Ljava/lang/Object;Lorg/hibernate/engine/SessionImplementor;Z)V(Loader.java:854)[optimized]
at org/hibernate/loader/Loader.doQuery(Lorg/hibernate/engine/SessionImplementor;Lorg/hibernate/engine/QueryParameters;Z)Ljava/util/List;(Loader.java:729)[inlined]
at org/hibernate/loader/Loader.doQueryAndInitializeNonLazyCollections(Lorg/hibernate/engine/SessionImplementor;Lorg/hibernate/engine/QueryParameters;Z)Ljava/util/List;(Loader.java:236)[inlined]
at org/hibernate/loader/Loader.loadEntity(Lorg/hibernate/engine/SessionImplementor;Ljava/lang/Object;Lorg/hibernate/type/Type;Ljava/lang/Object;Ljava/lang/String;Ljava/io/Serializable;Lorg/hibernate/persister/entity/EntityPersister;)Ljava/util/List;(Loader.java:1885)[optimized]
at org/hibernate/loader/entity/AbstractEntityLoader.load(Lorg/hibernate/engine/SessionImplementor;Ljava/lang/Object;Ljava/lang/Object;Ljava/io/Serializable;)Ljava/lang/Object;(AbstractEntityLoader.java:48)
at org/hibernate/loader/entity/AbstractEntityLoader.load(Ljava/io/Serializable;Ljava/lang/Object;Lorg/hibernate/engine/SessionImplementor;)Ljava/lang/Object;(AbstractEntityLoader.java:42)
at org/hibernate/persister/entity/AbstractEntityPersister.load(Ljava/io/Serializable;Ljava/lang/Object;Lorg/hibernate/LockMode;Lorg/hibernate/engine/SessionImplementor;)Ljava/lang/Object;(AbstractEntityPersister.java:3044)[optimized]
at org/hibernate/event/def/DefaultLoadEventListener.loadFromDatasource(Lorg/hibernate/event/LoadEvent;Lorg/hibernate/persister/entity/EntityPersister;Lorg/hibernate/engine/EntityKey;Lorg/hibernate/event/LoadEventListener$LoadType;)Ljava/lang/Object;(DefaultLoadEventListener.java:395)[inlined]
at org/hibernate/event/def/DefaultLoadEventListener.doLoad(Lorg/hibernate/event/LoadEvent;Lorg/hibernate/persister/entity/EntityPersister;Lorg/hibernate/engine/EntityKey;Lorg/hibernate/event/LoadEventListener$LoadType;)Ljava/lang/Object;(DefaultLoadEventListener.java:332)[optimized]
at org/hibernate/event/def/DefaultLoadEventListener.load(Lorg/hibernate/event/LoadEvent;Lorg/hibernate/persister/entity/EntityPersister;Lorg/hibernate/engine/EntityKey;Lorg/hibernate/event/LoadEventListener$LoadType;)Ljava/lang/Object;(DefaultLoadEventListener.java:139)[inlined]
at org/hibernate/event/def/DefaultLoadEventListener.onLoad(Lorg/hibernate/event/LoadEvent;Lorg/hibernate/event/LoadEventListener$LoadType;)V(DefaultLoadEventListener.java:78)[optimized]
at org/hibernate/impl/SessionImpl.fireLoad(Lorg/hibernate/event/LoadEvent;Lorg/hibernate/event/LoadEventListener$LoadType;)V(SessionImpl.java:878)[optimized]
at org/hibernate/impl/SessionImpl.immediateLoad(Ljava/lang/String;Ljava/io/Serializable;)Ljava/lang/Object;(SessionImpl.java:836)
at org/hibernate/proxy/AbstractLazyInitializer.initialize()V(AbstractLazyInitializer.java:66)
at org/hibernate/proxy/AbstractLazyInitializer.getImplementation()Ljava/lang/Object;(AbstractLazyInitializer.java:111)[inlined]
at org/hibernate/proxy/pojo/cglib/CGLIBLazyInitializer.invoke(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;(CGLIBLazyInitializer.java:147)[optimized]
at com/fanniemae/customersolutions/ess/modelobject/LoanReconciliation$$EnhancerByCGLIB$$2c97c342.getFannieMaeLoan()Lcom/fanniemae/customersolutions/ess/modelobject/FannieMaeLoan;(Unknown Source)
at jrockit/vm/RNI.c2java(IIII)V(Native Method)
at jrockit/reflect/NativeMethodInvoker.invoke0(Ljava/lang/Object;ILjava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;(Native Method)
at jrockit/reflect/NativeMethodInvoker.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;(Unknown Source)[optimized]
at jrockit/reflect/VirtualNativeMethodInvoker.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;(Unknown Source)
at java/lang/reflect/Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;I)Ljava/lang/Object;(Unknown Source)[optimized]
at com/fanniemae/ai/ac/utility/reflection/ReflectionSupport.execute(Ljava/lang/Object;Ljava/lang/reflect/Method;)Ljava/lang/Object;(ReflectionSupport.java:64)
at com/fanniemae/ai/ac/utility/reflection/ReflectionSupport.executeGetMethod(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;(ReflectionSupport.java:102)
at com/fanniemae/customersolutions/ess/grouping/impl/SuperLoanNaturalKeyBuilder.rawValue(Ljava/lang/String;Lcom/fanniemae/customersolutions/ess/modelobject/LoanToPseudopool;)Ljava/lang/Object;(SuperLoanNaturalKeyBuilder.java:89)
at com/fanniemae/customersolutions/ess/grouping/impl/SuperLoanNaturalKeyBuilder.value(Lcom/fanniemae/customersolutions/ess/castor/grouping/Criteria;Lcom/fanniemae/customersolutions/ess/modelobject/LoanToPseudopool;)Ljava/lang/Object;(SuperLoanNaturalKeyBuilder.java:61)
at com/fanniemae/customersolutions/ess/grouping/impl/SuperLoanNaturalKeyBuilder.buildNaturalKey(Lcom/fanniemae/customersolutions/ess/modelobject/LoanToPseudopool;)Ljava/util/Map;(SuperLoanNaturalKeyBuilder.java:41)
at com/fanniemae/customersolutions/ess/grouping/impl/GroupingManager.group(Ljava/lang/Long;)Lcom/fanniemae/customersolutions/ess/modelobject/SuperLoan;(GroupingManager.java:46)
at jrockit/vm/RNI.c2java(IIII)V(Native Method)
at jrockit/reflect/NativeMethodInvoker.invoke0(Ljava/lang/Object;ILjava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;(Native Method)
at jrockit/reflect/NativeMethodInvoker.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;(Unknown Source)[optimized]
at jrockit/reflect/VirtualNativeMethodInvoker.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;(Unknown Source)
at java/lang/reflect/Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;I)Ljava/lang/Object;(Unknown Source)[inlined]
at org/springframework/aop/support/AopUtils.invokeJoinpointUsingReflection(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;(AopUtils.java:281)[inlined]
at org/springframework/aop/framework/ReflectiveMethodInvocation.invokeJoinpoint()Ljava/lang/Object;(ReflectiveMethodInvocation.java:187)[inlined]
at org/springframework/aop/framework/ReflectiveMethodInvocation.proceed()Ljava/lang/Object;(ReflectiveMethodInvocation.java:176)[optimized]
at org/springframework/transaction/interceptor/TransactionInterceptor.invoke(Lorg/aopalliance/intercept/MethodInvocation;)Ljava/lang/Object;(TransactionInterceptor.java:107)[optimized]
at org/springframework/aop/framework/ReflectiveMethodInvocation.proceed()Ljava/lang/Object;(ReflectiveMethodInvocation.java:176)[optimized]
at org/springframework/aop/framework/JdkDynamicAopProxy.invoke(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;(JdkDynamicAopProxy.java:210)[optimized]
at $Proxy42.group(Ljava/lang/Long;)Lcom/fanniemae/customersolutions/ess/modelobject/SuperLoan;(Unknown Source)
at com/fanniemae/customersolutions/ess/grouping/impl/LoanToPseudopoolResultSetParsingProcess.process(Ljava/lang/Object;)Lcom/fanniemae/ai/ac/parsingprocess/Status;(LoanToPseudopoolResultSetParsingProcess.java:31)
at com/fanniemae/ai/ac/parsingprocess/ResultSetParsingProcess.execute()Lcom/fanniemae/ai/ac/parsingprocess/Status;(ResultSetParsingProcess.java:91)[optimized]
at com/fanniemae/customersolutions/ess/workflow/deal/actions/SuperLoanChunkProcessor.process(Lcom/fanniemae/ai/ac/parsingprocess/parallel/ChunkMessage;)V(SuperLoanChunkProcessor.java:51)
at com/fanniemae/ai/ac/parsingprocess/parallel/ChunkCommand.perform(Lcom/fanniemae/ai/ac/async/AsyncMessageObject;)Lcom/fanniemae/ai/ac/async/AsyncResults;(ChunkCommand.java:38)
at com/fanniemae/ai/ac/async/AsyncCommand.process()V(AsyncCommand.java:72)
at com/fanniemae/ai/ac/async/threads/AsyncRunnable.run()V(AsyncRunnable.java:29)
at java/util/concurrent/Executors$RunnableAdapter.call()Ljava/lang/Object;(Executors.java:417)
at java/util/concurrent/FutureTask$Sync.innerRun()V(FutureTask.java:269)
at java/util/concurrent/FutureTask.run()V(FutureTask.java:123)
at java/util/concurrent/ThreadPoolExecutor$Worker.runTask(Ljava/lang/Runnable;)V(ThreadPoolExecutor.java:650)
at java/util/concurrent/ThreadPoolExecutor$Worker.run()V(ThreadPoolExecutor.java:675)
at java/lang/Thread.run()V(Unknown Source)
at jrockit/vm/RNI.c2java(IIII)V(Native Method)
-- end of trace


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.