ibatis-user-cs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Marzo" <david.ma...@puzzlet.net>
Subject Strange Bug
Date Wed, 18 Jan 2006 13:21:06 GMT
First of all, sorry by the lack of precision. But i am too lost and cant
build a test case to reproduce the bug.

Randomly i have this exception. Maybe 1 of 15000 request in a asp.net
web app.
I suspect its a issue with DynamicProxies. I use this a lot in my xml
mapping files.

DaoProxy : unable to intercept method name 'FindByQuery', 
cause : Exception has been thrown by the target of an invocation. Error
executing query 'Core.HuecoPaginaEvento.LoadAllByHuecosFromPageInDate'
for list. 
Cause: Duplicate type name within an assembly. at
Puzzlet.XXXX.Persistence.Mapper.SQLServer.BaseSQLMapDao.ExecuteQueryForL
ist(String statementName, Object parameterObject) in
D:\Desarrollo\Puzzlet\XXXX\Fuentes\XXXXProject\Persistence.Mapper.SQLSer
ver\Dao\BaseSqlMapDao.cs:line 560 at
Puzzlet.XXXX.Persistence.Mapper.SQLServer.BaseSQLMapDao.FindByQuery(Quer
y query) in
D:\Desarrollo\Puzzlet\XXXX\Fuentes\XXXXProject\Persistence.Mapper.SQLSer
ver\Dao\BaseSqlMapDao.cs:line 350 at
Puzzlet.XXXX.Persistence.Mapper.SQLServer.BaseSQLMapDao.FindByQuery(Quer
y query, String[] fetchGroups) in
D:\Desarrollo\Puzzlet\XXXX\Fuentes\XXXXProject\Persistence.Mapper.SQLSer
ver\Dao\BaseSqlMapDao.cs:line 360 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.TypeBuilder..ctor(String name, TypeAttributes
attr, Type parent, Type[] interfaces, Module module, PackingSize
iPackingSize, TypeBuilder enclosingType) at
System.Reflection.Emit.ModuleBuilder.DefineType(String name,
TypeAttributes attr, Type parent, Type[] interfaces) at
Castle.DynamicProxy.Builder.CodeGenerators.BaseCodeGenerator.CreateTypeB
uilder(String typeName, Type baseType, Type[] interfaces) at
Castle.DynamicProxy.Builder.CodeGenerators.ClassProxyGenerator.GenerateC
ode(Type baseClass, Type[] interfaces) at
Castle.DynamicProxy.Builder.CodeGenerators.ClassProxyGenerator.GenerateC
ode(Type baseClass) at
Castle.DynamicProxy.Builder.DefaultProxyBuilder.CreateClassProxy(Type
theClass) at Castle.DynamicProxy.ProxyGenerator.CreateClassProxy(Type
baseClass, IInterceptor interceptor, Object[] argumentsForConstructor)
at
IBatisNet.Common.Utilities.Proxy.CachedProxyGenerator.CreateClassProxy(T
ype baseClass, IInterceptor interceptor, Object[]
argumentsForConstructor) in
D:\Desarrollo\Puzzlet\IBATIS\IBatisNet\IBatisNet.Common\Utilities\Proxy\
CachedProxyGenerator.cs:line 119 at
IBatisNet.DataMapper.LazyLoad.LazyLoadProxyFactory.Build(SqlMapper
mapper, IMappedStatement mappedStatement, Object param, Object target,
String propertyName) in
d:\desarrollo\puzzlet\ibatis\ibatisnet\ibatisnet.datamapper\lazyload\laz
yloadproxyfactory.cs:line 183 at
IBatisNet.DataMapper.MappedStatements.MappedStatement.SetObjectProperty(
RequestScope request, ResultMap resultMap, ResultProperty mapping,
Object& target, IDataReader reader) in
d:\desarrollo\puzzlet\ibatis\ibatisnet\ibatisnet.datamapper\mappedstatem
ents\mappedstatement.cs:line 995 at
IBatisNet.DataMapper.MappedStatements.MappedStatement.ApplyResultMap(Req
uestScope request, IDataReader reader, Object resultObject) in
d:\desarrollo\puzzlet\ibatis\ibatisnet\ibatisnet.datamapper\mappedstatem
ents\mappedstatement.cs:line 259 at
IBatisNet.DataMapper.MappedStatements.MappedStatement.RunQueryForList(Re
questScope request, IDalSession session, Object parameterObject, Int32
skipResults, Int32 maxResults, RowDelegate rowDelegate) in
d:\desarrollo\puzzlet\ibatis\ibatisnet\ibatisnet.datamapper\mappedstatem
ents\mappedstatement.cs:line 552 at
IBatisNet.DataMapper.MappedStatements.MappedStatement.ExecuteQueryForLis
t(IDalSession session, Object parameterObject, Int32 skipResults, Int32
maxResults) in
d:\desarrollo\puzzlet\ibatis\ibatisnet\ibatisnet.datamapper\mappedstatem
ents\mappedstatement.cs:line 503 at
IBatisNet.DataMapper.MappedStatements.MappedStatement.ExecuteQueryForLis
t(IDalSession session, Object parameterObject) in
d:\desarrollo\puzzlet\ibatis\ibatisnet\ibatisnet.datamapper\mappedstatem
ents\mappedstatement.cs:line 486 at
IBatisNet.DataMapper.SqlMapper.QueryForList(String statementName, Object
parameterObject) in
D:\Desarrollo\Puzzlet\IBATIS\IBatisNet\IBatisNet.DataMapper\SqlMapper.cs
:line 800 at
Puzzlet.XXXX.Persistence.Mapper.SQLServer.BaseSQLMapDao.ExecuteQueryForL
ist(String statementName, Object parameterObject) in
D:\Desarrollo\Puzzlet\XXXX\Fuentes\XXXXProject\Persistence.Mapper.SQLSer
ver\Dao\BaseSqlMapDao.cs:line 556
at IBatisNet.DataAccess.Configuration.DaoProxy.Intercept(IInvocation
invocation, Object[] arguments) in
d:\desarrollo\puzzlet\ibatis\ibatisnet\ibatisnet.dataaccess\configuratio
n\daoproxy.cs:line 149 at
ProxyInterfaceHuecoPaginaEventoSqlMapDao_IHuecoPaginaEventoDao_IDao_ISer
ializable.FindByQuery(Query , String[] ) at
Puzzlet.XXXX.Persistence.EntityManager.FindByQuery(Type type, Query
query, String[] fetchGroups) in
D:\Desarrollo\Puzzlet\XXXX\Fuentes\XXXXProject\Persistence\EntityManager
.cs:line 135 at
Puzzlet.XXXX.Logic.Acciones.AccionVerHome.Execute(HttpContext context)
at Lattis.Control.Action.CallExecute(HttpContext context) in
D:\Desarrollo\Puzzlet\XXXX\Fuentes\XXXXProject\lattis\Control\Action.cs:
line 125 at
Lattis.Control.RequestProcessor.ProcessActionExecution(HttpContext
context, Action action) in
D:\Desarrollo\Puzzlet\XXXX\Fuentes\XXXXProject\lattis\Control\RequestPro
cessor.cs:line 104

at Lattis.Control.RequestProcessor.ProcessException(HttpContext context,
Action action, Exception exception) in
D:\Desarrollo\Puzzlet\XXXX\Fuentes\XXXXProject\lattis\Control\RequestPro
cessor.cs:line 126 at
Lattis.Control.RequestProcessor.ProcessActionExecution(HttpContext
context, Action action) in
D:\Desarrollo\Puzzlet\XXXX\Fuentes\XXXXProject\lattis\Control\RequestPro
cessor.cs:line 109 at
Lattis.Control.RequestProcessor.Process(HttpContext context) in
D:\Desarrollo\Puzzlet\XXXX\Fuentes\XXXXProject\lattis\Control\RequestPro
cessor.cs:line 43 at
Lattis.Control.FrontController.ProcessRequest(HttpContext context) in
D:\Desarrollo\Puzzlet\XXXX\Fuentes\DeFindeProject\lattis\Control\FrontCo
ntroller.cs:line 52 at
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication+IExecutio
nStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep
step, Boolean& completedSynchronously)

Thanks in advance.


David Marzo
david.marzo@puzzlet.net

Despacho Tecnológico Puzzlet S.L.
www.puzzlet.net
Tlf. 948 26 53 46

------------------------------------------------------------------------
Este mensaje se dirige exclusivamente a su destinatario y puede contener
información privilegiada o confidencial. Si no es vd. el destinatario
indicado, queda notificado de que la utilización, divulgación y/o copia
sin autorización está prohibida en virtud de la legislación vigente. Si
ha recibido este mensaje por error, le rogamos que nos lo comunique
inmediatamente por esta misma vía y proceda a su destrucción.
------------------------------------------------------------------------







Mime
View raw message