1 Reply Latest reply: Feb 17, 2012 6:17 AM by jaikiran pai RSS

New @ singleton instances when calling the JNDI View

Daniel Straub Newbie

If we call the jndi view (naming) in the admin console or with the mben jboss.as:subsystem=naming, the server creates one or more new instances of all @Singeltons and calls @PostConstruct.

Here is a stacktrace:

 

Thread [HttpManagementService-threads - 4] (Suspended (breakpoint at line 61 in CacheProvider))

CacheProvider.startCache() line: 61

NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available [native method]

NativeMethodAccessorImpl.invoke(Object, Object[]) line: 39

DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25

Method.invoke(Object, Object...) line: 597

ManagedReferenceLifecycleMethodInterceptorFactory$ManagedReferenceLifecycleMethodInterceptor.processInvocation(InterceptorContext) line: 130

InterceptorContext.proceed() line: 288

WeavedInterceptor.processInvocation(InterceptorContext) line: 53

InterceptorContext.proceed() line: 288

DependencyInjectionCompleteMarker$1.processInvocation(InterceptorContext) line: 43

InterceptorContext.proceed() line: 288

WeldInjectionInterceptor.processInvocation(InterceptorContext) line: 73

InterceptorContext.proceed() line: 288

ManagedReferenceInterceptorFactory$ManagedReferenceInterceptor.processInvocation(InterceptorContext) line: 92

InterceptorContext.proceed() line: 288

WeavedInterceptor.processInvocation(InterceptorContext) line: 53

InterceptorContext.proceed() line: 288

TCCLInterceptor.processInvocation(InterceptorContext) line: 45

InterceptorContext.proceed() line: 288

ChainedInterceptor.processInvocation(InterceptorContext) line: 61

BasicComponent.constructComponentInstance(ManagedReference, boolean) line: 161

BasicComponent.createInstance() line: 85

ManagedBeanCreateInterceptor.processInvocation(InterceptorContext) line: 45

InterceptorContext.proceed() line: 288

ChainedInterceptor.processInvocation(InterceptorContext) line: 61

ViewService$DefaultViewInstanceFactory.createViewInstance(ComponentView, Map<Object,Object>) line: 280

ViewService$View.createInstance(Map<Object,Object>) line: 157

ViewService$View.createInstance() line: 153

ViewManagedReferenceFactory.getReference() line: 50

WritableServiceBasedNamingStore(ServiceBasedNamingStore).lookup(String, ServiceName) line: 128

WritableServiceBasedNamingStore(ServiceBasedNamingStore).list(Name) line: 157

NamingContext.list(Name) line: 280

NamingContext.list(String) line: 296

JndiViewOperation.addEntries(ModelNode, Context) line: 113

JndiViewOperation.addEntries(ModelNode, Context) line: 122

JndiViewOperation.access$000(JndiViewOperation, ModelNode, Context) line: 45

JndiViewOperation$1$1.addEntries(ModelNode, Context) line: 98

EEJndiViewExtension.execute(JndiViewExtensionContext) line: 100

JndiViewOperation$1.execute(OperationContext, ModelNode) line: 88

OperationContextImpl(AbstractOperationContext).executeStep(AbstractOperationContext$Step) line: 359

OperationContextImpl(AbstractOperationContext).doCompleteStep() line: 254

OperationContextImpl(AbstractOperationContext).completeStep() line: 190

JndiViewOperation.execute(OperationContext, ModelNode) line: 109

OperationContextImpl(AbstractOperationContext).executeStep(AbstractOperationContext$Step) line: 359

OperationContextImpl(AbstractOperationContext).doCompleteStep() line: 254

OperationContextImpl(AbstractOperationContext).completeStep() line: 190

ModelControllerImpl$DefaultPrepareStepHandler.execute(OperationContext, ModelNode) line: 432

OperationContextImpl(AbstractOperationContext).executeStep(AbstractOperationContext$Step) line: 359

OperationContextImpl(AbstractOperationContext).doCompleteStep() line: 254

OperationContextImpl(AbstractOperationContext).completeStep() line: 190

ModelControllerImpl.execute(ModelNode, OperationMessageHandler, ModelController$OperationTransactionControl, OperationAttachments) line: 119

ModelControllerImpl$1.execute(Operation, OperationMessageHandler) line: 302

ModelControllerImpl$1.execute(Operation) line: 292

DomainApiHandler.processRequest(HttpExchange) line: 273

DomainApiHandler.handle(HttpExchange) line: 192

Filter$Chain.doFilter(HttpExchange) line: 78

AuthFilter.doFilter(HttpExchange, Filter$Chain) line: 69

Filter$Chain.doFilter(HttpExchange) line: 81

ServerImpl$Exchange$LinkHandler.handle(HttpExchange) line: 710

Filter$Chain.doFilter(HttpExchange) line: 78

RealmReadinessFilter.doFilter(HttpExchange, Filter$Chain) line: 54

Filter$Chain.doFilter(HttpExchange) line: 81

ServerImpl$Exchange.run() line: 682

ThreadPoolExecutor$Worker.runTask(Runnable) line: 886

ThreadPoolExecutor$Worker.run() line: 908

JBossThread(Thread).run() line: 662

JBossThread.run() line: 122