-->
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.  [ 2 posts ] 
Author Message
 Post subject: Duplicate type name within an assembly on 1.2.0GA
PostPosted: Fri Apr 18, 2008 4:15 am 
Newbie

Joined: Thu Jun 30, 2005 2:15 pm
Posts: 5
Hi,
I'm aware that Prior to NHibernate 1.2.0Beta 2 there was a race condition caused by the Castle.DynamicProxy. This issue was tracked as http://jira.nhibernate.org:8080/jira/browse/NH-782 . *However* I'm running NHibernate 1.2.0GA and under load for one of the method calls in the system (this is particularly odd, most things work great, but just one method causes this exception!) . I have seen this error in my logs.

I've checked, and checked again the Castle.DynamicProxy assembly thats in use, and ignoring the version numbers which seem unreliable, the DLL I'm using is 77,824 bytes big and has an MD5 HASH of C0DAC2B752F6B2FDADB7F6DB8004C16C which matches the properties of the DLL shipped with both 1.2.0GA and 1.2.1GA (but doesn't match the latest stable 1.1.5 assembly provided by the castle project)

Does anyone out there have any clue as to how I can be experiencing this issue on the version I'm using (see below). Unfortunately I've not been able to replicate the issue directly in a test scenario, it only occurs on a heavily loaded live environment.

In this environment there are multiple Application Domains on the same physical system (and IIS instance) using the same SessionFactory configurations (but different instances of the SessionFactory, one per Application Domain). Is it possible something's happening with temporary files or some-such ?

NHibernate version:
1.2.0GA

Full stack trace of any exception that occurs:
System.ArgumentException: Duplicate type name within an assembly.
at System.Reflection.Emit.AssemblyBuilderData.CheckTypeNameConflict(String strTypeName, TypeBuilder enclosingType)
at System.Reflection.Emit.TypeBuilder.Init(String fullname, TypeAttributes attr, Type parent, Type[] interfaces, Module module, PackingSize iPackingSize, Int32 iTypeSize, TypeBuilder enclosingType)
at System.Reflection.Emit.ModuleBuilder.DefineTypeNoLock(String name, TypeAttributes attr, Type parent, Type[] interfaces)
at System.Reflection.Emit.ModuleBuilder.DefineType(String name, TypeAttributes attr, Type parent, Type[] interfaces)
at Castle.DynamicProxy.Builder.CodeBuilder.EasyType..ctor(ModuleScope modulescope, String name, Type baseType, Type[] interfaces, Boolean serializable)
at Castle.DynamicProxy.Builder.CodeGenerators.BaseCodeGenerator.CreateTypeBuilder(String typeName, Type baseType, Type[] interfaces)
at Castle.DynamicProxy.Builder.CodeGenerators.ClassProxyGenerator.GenerateCode(Type baseClass, Type[]interfaces)
at Castle.DynamicProxy.Builder.DefaultProxyBuilder.CreateClassProxy(Type theClass, Type[] interfaces)
at Castle.DynamicProxy.ProxyGenerator.CreateClassProxy(Type baseClass, Type[] interfaces, IInterceptor interceptor, Boolean checkAbstract, Object[] argumentsForConstructor)
at NHibernate.Proxy.CastleProxyFactory.GetProxy(Object id, ISessionImplementor session)

Name and version of the database you are using:
SQL Server 2005


Top
 Profile  
 
 Post subject: Re: Duplicate type name within an assembly on 1.2.0GA
PostPosted: Thu Sep 23, 2010 5:49 pm 
Newbie

Joined: Thu Sep 23, 2010 5:39 pm
Posts: 1
Hi,

did anyone ever find the reason for the Duplicate type name within an assembly error? I'm experiencing the same error with NHibernate 1.2.1 and a Castle.DynamicProxy.dll with the same MD5 checksum. And no, upgrading to NHibernate 2.x is not an option for me in the immediate future :-(


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

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.