[JBoss Seam] - Re: Can't inject entityManager into application component?
by RobJellinghaus
Well well well. Some random forum surfing and one more try, and now this works:
/**
| * Local interface to replog.
| * TODO: do we really want this??? are we getting into a synchronization mess?!?!?!?! or is it Just Right????????
| */
| @Local
| public interface Replog {
| public void init();
|
| public void destroy();
|
| public Site getSite();
| }
|
| @Startup
| @Scope(APPLICATION)
| @Stateful
| @Name("replogApplication")
| public class ReplogApplication implements Replog {
| ...
| @PersistenceContext // why does this work but @In doesn't?
| private transient EntityManager entityManager;
|
| // SiteSynchronizers, indexed by Site
| private Map synchronizers = new HashMap();
|
| /** The Site we consider to be "this application's site" */
| private Site site;
|
| @Create
| public void init ()
| {
| log.debug("Creating replogApplication");
|
| // for now, create one SiteSynchronizer per defined Site
| List<Site> sites = entityManager.createQuery("from Site").getResultList();
|
| for (Site site : sites) {
| synchronizers.put(site, new SiteSynchronizer(site));
| ...
| }
| }
|
| @Remove @Destroy
| public void destroy () {
| }
|
| /** Get the current Site. Should this really be an Application context component instead????? */
| public Site getSite () {
| return site;
| }
| }
So, @PersistenceContext was part of the secret. Looks like the EJB3 lifecycle methods have to be in the local interface too. I would probably know this if I hadn't started learning Seam before EJB3....
Why does @PersistenceContext work here but @In doesn't? I think I'm good to go now (modulo the possibility that I'm still arranging my components the wrong way, but some more code iteration will clue me in there). But I'm still curious why the first way didn't work; I think there's some deep Seam knowledge in there somewhere...?
Cheers!
Rob
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967420#3967420
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967420
19 years, 8 months
[JBoss Seam] - Re: Can't inject entityManager into application component?
by RobJellinghaus
Hm. Well, I tried making it a @Stateful bean, and went through some rigmarole with needing to put the init() method in the local interface.
But it still fails. I now get this (sorry for the big mangled stacktrace, this forum isn't kind to long code lines):
[testng] WARN 25-08 00:41:39,828 (Log4JLogger.java:warn:104) -Stateful session beans was bound to the APPLICATION context - note that it is not safe to make concurrent calls to the bean: replogApplication
| [testng] INFO 25-08 00:41:39,828 (Log4JLogger.java:info:94) -Component: replogApplication, scope: APPLICATION, type: STATEFUL_SESSION_BEAN, class: com.robjsoftware.replog.ReplogApplication, JNDI: ReplogApplication/local
| ...
| [testng] DEBUG 25-08 00:41:43,860 (EJBContainer.java:initialiseInterceptors:718) -Initialising interceptors for ReplogApplication...
| [testng] DEBUG 25-08 00:41:43,860 (EJBContainer.java:initialiseInterceptors:720) -Default interceptors: null
| [testng] DEBUG 25-08 00:41:43,860 (EJBContainer.java:initialiseInterceptors:723) -Class interceptors: []
| [testng] DEBUG 25-08 00:41:43,860 (EJBContainer.java:initialiseInterceptors:739) -All applicable interceptor classes: []
| [testng] INFO 25-08 00:41:43,860 (MCKernelAbstraction.java:install:84) -installing bean: jboss.j2ee:jar=test,name=ReplogApplication,service=EJB3 with dependencies:
| [testng] DEBUG 25-08 00:41:43,985 (EJB3InterceptorsFactory.java:createPerJoinpoint:100) -Bound interceptors for joinpoint: public void com.robjsoftware.replog.ReplogApplication.init() - [Lorg.jboss.ejb3.interceptor.InterceptorInfo;@150b45a
| [testng] DEBUG 25-08 00:41:44,000 (UserTransactionImpl.java:<init>:56) -new UserTx: org.jboss.ejb3.tx.UserTransactionImpl@bb6255
| [testng] DEBUG 25-08 00:41:44,032 (EJB3InterceptorsFactory.java:createPerJoinpoint:100) -Bound interceptors for joinpoint: public void com.robjsoftware.replog.ReplogApplication.init() - [Lorg.jboss.ejb3.interceptor.InterceptorInfo;@b0ede6
| [testng] DEBUG 25-08 00:41:44,032 (JaccHelper.java:addPermissions:143) -ReplogApplication has no
| @SecurityDomain - skipping JACC configuration
| [testng] INFO 25-08 00:41:44,032 (EJBContainer.java:start:553) -STARTED EJB: com.robjsoftware.replog.ReplogApplication ejbName: ReplogApplication
| [testng] DEBUG 25-08 00:41:44,063 (Ejb3Deployment.java:registerEJBContainer:440) -Bound ejb3 container jboss.j2ee:service=EJB3,jar=test,name=ReplogApplication
| [testng] DEBUG 25-08 00:41:44,063 (Log4JLogger.java:debug:84) -instantiating Seam component: isUserInRole
| [testng] DEBUG 25-08 00:41:44,063 (Log4JLogger.java:debug:84) -instantiating Seam component: statelessContext
| [testng] DEBUG 25-08 00:41:44,063 (Log4JLogger.java:debug:84) -instantiating Seam component: replogApplication
| [testng] DEBUG 25-08 00:41:44,063 (Log4JLogger.java:debug:84) -JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.LocalOnlyContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
| [testng] DEBUG 25-08 00:41:44,094 (SecurityAssociation.java:<clinit>:143) -Using ThreadLocal: false
| [testng] DEBUG 25-08 00:41:44,125 (ExtendedPersistenceContextPropagationInterceptor.java:invoke:50) -++++ LongLivedSessionPropagationInterceptor
| [testng] DEBUG 25-08 00:41:44,125 (ReplogApplication.java:init:37) -Creating replogApplication
| [testng] javax.ejb.EJBException: java.lang.NullPointerException
| [testng] at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:69)
| [testng] at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83)
| [testng] at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:197)
| [testng] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
| [testng] at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
| [testng] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
| [testng] at org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:81)
| [testng] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
| [testng] at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
| [testng] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
| [testng] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
| [testng] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
| [testng] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
| [testng] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
| [testng] at org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:189)
| [testng] at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:98)
| [testng] at $Proxy55.init(Unknown Source)
| [testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| [testng] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| [testng] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| [testng] at java.lang.reflect.Method.invoke(Method.java:585)
| [testng] at org.jboss.seam.util.Reflections.invoke(Reflections.java:13)
| [testng] at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:32)
| [testng] at org.jboss.seam.Component.callComponentMethod(Component.java:1338)
| [testng] at org.jboss.seam.Component.callCreateMethod(Component.java:1326)
| [testng] at org.jboss.seam.Component.newInstance(Component.java:1316)
| [testng] at org.jboss.seam.Component.getInstance(Component.java:1267)
| [testng] at org.jboss.seam.Component.getInstance(Component.java:1257)
| [testng] at org.jboss.seam.contexts.Lifecycle.startup(Lifecycle.java:125)
| [testng] at org.jboss.seam.contexts.Lifecycle.endInitialization(Lifecycle.java:104)
| [testng] at org.jboss.seam.init.Initialization.init(Initialization.java:199)
| [testng] at org.jboss.seam.mock.SeamTest.init(SeamTest.java:321)
| [testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| [testng] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| [testng] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| [testng] at java.lang.reflect.Method.invoke(Method.java:585)
| [testng] at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:529)
| [testng] at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:311)
| [testng] at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:149)
| [testng] at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:77)
| [testng] at org.testng.TestRunner.privateRun(TestRunner.java:614)
| [testng] at org.testng.TestRunner.run(TestRunner.java:505)
| [testng] at org.testng.SuiteRunner.privateRun(SuiteRunner.java:221)
| [testng] at org.testng.SuiteRunner.run(SuiteRunner.java:147)
| [testng] at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:576)
| [testng] at org.testng.TestNG.runSuitesLocally(TestNG.java:539)
| [testng] at org.testng.TestNG.run(TestNG.java:316)
| [testng] at org.testng.TestNG.privateMain(TestNG.java:666)
| [testng] at org.testng.TestNG.main(TestNG.java:608)
| [testng] Caused by: java.lang.NullPointerException
| [testng] at com.robjsoftware.replog.ReplogApplication.init(ReplogApplication.java:40)
| [testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| [testng] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| [testng] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java
| :25)
| [testng] at java.lang.reflect.Method.invoke(Method.java:585)
| [testng] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:109)
| [testng] at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
| [testng] at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
| [testng] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
| [testng] at org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationInterceptor.invoke(ExtendedPersistenceContextPropagationInterceptor.java:57)
| [testng] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
| [testng] at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
| [testng] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
| [testng] at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
| [testng] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
| [testng] at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
| [testng] ... 47 more
You guessed it... same darn NullPointerException because entityManager is null.
What am I missing? I have plain old POJOs in my session scope that I inject an EntityManager to in exactly the same way. Why is this not working at application scope?
Maybe there's another way to do what I'm wanting to do here... basically, I want there to be some application component that maintains a list of "synchronizers", one synchronizer per Site entity that exists in the database. Perhaps I want a stateless component that extracts the list of sites, and then have the application component inject that SiteList and construct its synchronizers from that? I'll try that next (but not tonight, it's 1 AM ;-). But it'd still be nice to know the theory behind why what I'm doing here isn't supported... or know what I'm doing wrong!
Thanks,
Rob
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967418#3967418
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967418
19 years, 8 months
[JBoss Seam] - Re: Seam + Tobago
by bpatters
did you ever get this to work? I've been trying all night but haven't been able to get past the following exceptions:
2006-08-25 02:28:58,300 INFO [org.apache.myfaces.tobago.application.ViewHandlerImpl] Hiding ri base implemation: org.apache.myfaces.application.jsp.JspViewHandlerImpl@2b452b
| 2006-08-25 02:28:58,379 INFO [org.apache.myfaces.webapp.StartupServletContextListener] ServletContext 'D:\jboss-4.0.4.GA\server\default\.\tmp\deploy\tmp29602myl.ear-contents\myl-exp.war\' initialized.
| 2006-08-25 02:28:58,379 INFO [org.apache.myfaces.tobago.webapp.TobagoServletContextListener] *** contextInitialized ***
| 2006-08-25 02:28:58,379 INFO [org.apache.myfaces.tobago.config.TobagoConfig] adding resourceDir = 'org/apache/myfaces/tobago/renderkit'
| 2006-08-25 02:28:58,379 INFO [org.apache.myfaces.tobago.config.TobagoConfig] adding resourceDir = 'tobago'
| 2006-08-25 02:28:58,379 INFO [org.apache.myfaces.tobago.config.TobagoConfig] adding resourceDir = '/WEB-INF/'
| 2006-08-25 02:28:58,504 ERROR [org.apache.myfaces.tobago.context.ResourceLocator] ResourcePath empty! Please check the tobago-config.xml file! path='/inventory'
| 2006-08-25 02:28:58,519 ERROR [org.apache.myfaces.tobago.context.ResourceLocator] ResourcePath empty! Please check the tobago-config.xml file! path='/users/webpage'
| 2006-08-25 02:28:58,519 ERROR [org.apache.myfaces.tobago.context.ResourceLocator] ResourcePath empty! Please check the tobago-config.xml file! path='/homeinventory'
| 2006-08-25 02:28:58,582 INFO [org.apache.myfaces.tobago.context.ResourceLocator] Loading tobago-theme.xml
| 2006-08-25 02:28:58,582 INFO [org.apache.myfaces.tobago.context.ThemeParser] Found theme: 'richmond'
| 2006-08-25 02:28:58,582 INFO [org.apache.myfaces.tobago.context.ResourceLocator] themeUrl = 'jar:file:/D:/jboss-4.0.4.GA/server/default/lib/tobago-theme-richmond-1.0.7.jar!/META-INF/tobago-theme.xml'
| 2006-08-25 02:28:58,582 INFO [org.apache.myfaces.tobago.context.ResourceLocator] ** org/apache/myfaces/tobago/renderkit/html/richmond/standard/property/tobago-theme-config.properties
| 2006-08-25 02:28:58,582 INFO [org.apache.myfaces.tobago.context.ThemeParser] Found theme: 'scarborough'
| 2006-08-25 02:28:58,582 INFO [org.apache.myfaces.tobago.context.ResourceLocator] themeUrl = 'jar:file:/D:/jboss-4.0.4.GA/server/default/lib/tobago-theme-scarborough-1.0.7.jar!/META-INF/tobago-theme.xml'
| 2006-08-25 02:28:58,582 INFO [org.apache.myfaces.tobago.context.ResourceLocator] ** org/apache/myfaces/tobago/renderkit/html/scarborough/mozilla_4_7/property/tobago-theme-config.properties
| 2006-08-25 02:28:58,597 INFO [org.apache.myfaces.tobago.context.ResourceLocator] ** org/apache/myfaces/tobago/renderkit/html/scarborough/standard/property/tobago.properties.xml
| 2006-08-25 02:28:58,597 INFO [org.apache.myfaces.tobago.context.ResourceLocator] sun.net.www.protocol.jar.JarURLConnection$JarURLInputStream@8a6351
| 2006-08-25 02:28:58,613 INFO [org.apache.myfaces.tobago.context.ResourceLocator] ** org/apache/myfaces/tobago/renderkit/html/scarborough/standard/property/tobago-theme-config.properties
| 2006-08-25 02:28:58,613 INFO [org.apache.myfaces.tobago.context.ResourceLocator] ** org/apache/myfaces/tobago/renderkit/html/scarborough/standard/property/tobago_de.properties.xml
| 2006-08-25 02:28:58,613 INFO [org.apache.myfaces.tobago.context.ResourceLocator] sun.net.www.protocol.jar.JarURLConnection$JarURLInputStream@1355a47
| 2006-08-25 02:28:58,629 INFO [org.apache.myfaces.tobago.context.ResourceLocator] ** org/apache/myfaces/tobago/renderkit/html/scarborough/opera/property/tobago-theme-config.properties
| 2006-08-25 02:28:58,629 INFO [org.apache.myfaces.tobago.context.ResourceLocator] ** org/apache/myfaces/tobago/renderkit/html/scarborough/mozilla/property/tobago-theme-config.properties
| 2006-08-25 02:28:58,629 INFO [org.apache.myfaces.tobago.context.ResourceLocator] ** org/apache/myfaces/tobago/renderkit/html/scarborough/msie/property/tobago-theme-config.properties
| 2006-08-25 02:28:58,629 INFO [org.apache.myfaces.tobago.context.ThemeParser] Found theme: 'speyside'
| 2006-08-25 02:28:58,629 INFO [org.apache.myfaces.tobago.context.ResourceLocator] themeUrl = 'jar:file:/D:/jboss-4.0.4.GA/server/default/lib/tobago-theme-speyside-1.0.7.jar!/META-INF/tobago-theme.xml'
| 2006-08-25 02:28:58,629 INFO [org.apache.myfaces.tobago.context.ResourceLocator] ** org/apache/myfaces/tobago/renderkit/html/speyside/standard/property/tobago-theme-config.properties
| 2006-08-25 02:28:58,629 INFO [org.apache.myfaces.tobago.context.ResourceLocator] ** org/apache/myfaces/tobago/renderkit/html/speyside/msie/property/tobago-theme-config.properties
| 2006-08-25 02:28:58,644 INFO [org.apache.myfaces.tobago.context.ThemeParser] Found theme: 'standard'
| 2006-08-25 02:28:58,644 INFO [org.apache.myfaces.tobago.context.ResourceLocator] themeUrl = 'jar:file:/D:/jboss-4.0.4.GA/server/default/lib/tobago-theme-standard-1.0.7.jar!/META-INF/tobago-theme.xml'
| 2006-08-25 02:28:58,644 INFO [org.apache.myfaces.tobago.config.TobagoConfig] resourceDirs already contains = 'org/apache/myfaces/tobago/renderkit'
| 2006-08-25 02:28:58,644 INFO [org.apache.myfaces.tobago.config.TobagoConfig] resourceDirs already contains = 'org/apache/myfaces/tobago/renderkit'
| 2006-08-25 02:28:58,644 INFO [org.apache.myfaces.tobago.config.TobagoConfig] resourceDirs already contains = 'org/apache/myfaces/tobago/renderkit'
| 2006-08-25 02:28:58,644 INFO [org.apache.myfaces.tobago.config.TobagoConfig] resourceDirs already contains = 'org/apache/myfaces/tobago/renderkit'
| 2006-08-25 02:28:58,644 INFO [org.apache.myfaces.tobago.config.TobagoConfig] resourceDirs already contains = 'org/apache/myfaces/tobago/renderkit'
| 2006-08-25 02:28:58,644 INFO [org.apache.myfaces.tobago.config.TobagoConfig] resourceDirs already contains = 'org/apache/myfaces/tobago/renderkit'
| 2006-08-25 02:28:58,644 INFO [org.apache.myfaces.tobago.config.TobagoConfig] resourceDirs already contains = 'org/apache/myfaces/tobago/renderkit'
| 2006-08-25 02:28:58,644 INFO [org.apache.myfaces.tobago.config.TobagoConfig] resourceDirs already contains = 'org/apache/myfaces/tobago/renderkit'
| 2006-08-25 02:28:58,644 DEBUG [javax.faces.webapp.FacesServlet] init begin
| 2006-08-25 02:28:58,644 DEBUG [javax.faces.webapp.FacesServlet] init end
| 2006-08-25 02:28:58,691 INFO [org.jboss.deployment.EARDeployer] Started J2EE application: file:/D:/jboss-4.0.4.GA/server/default/deploy/myl.ear
| 2006-08-25 02:29:05,113 DEBUG [javax.faces.webapp.FacesServlet] service begin
| 2006-08-25 02:29:05,191 INFO [org.apache.myfaces.tobago.context.ClientProperties] contentType='html' from header Accept='*/*'
| 2006-08-25 02:29:05,191 INFO [org.apache.myfaces.tobago.context.ClientProperties] userAgent='msie' from header User-Agent='msie'
| 2006-08-25 02:29:05,191 INFO [org.apache.myfaces.tobago.context.ClientProperties] debug-mode=false
| 2006-08-25 02:29:05,191 INFO [org.apache.myfaces.tobago.context.ClientProperties] theme='richmond' from requestParameter tobago.theme='null'
| 2006-08-25 02:29:05,238 INFO [org.jboss.seam.core.Pages] reading pages.xml
| 2006-08-25 02:29:05,691 DEBUG [javax.faces.webapp.FacesServlet] service end
| 2006-08-25 02:29:05,691 DEBUG [javax.faces.webapp.FacesServlet] service begin
| 2006-08-25 02:29:06,144 ERROR [STDERR] Aug 25, 2006 2:29:06 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
| INFO: Added Library from: jar:file:/D:/jboss-4.0.4.GA/server/default/lib/jsf-facelets.jar!/META-INF/jstl-core.taglib.xml
| 2006-08-25 02:29:06,175 ERROR [STDERR] Aug 25, 2006 2:29:06 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
| INFO: Added Library from: jar:file:/D:/jboss-4.0.4.GA/server/default/lib/jsf-facelets.jar!/META-INF/jsf-html.taglib.xml
| 2006-08-25 02:29:06,191 ERROR [STDERR] Aug 25, 2006 2:29:06 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
| INFO: Added Library from: jar:file:/D:/jboss-4.0.4.GA/server/default/lib/jsf-facelets.jar!/META-INF/jsf-ui.taglib.xml
| 2006-08-25 02:29:06,207 ERROR [STDERR] Aug 25, 2006 2:29:06 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
| INFO: Added Library from: jar:file:/D:/jboss-4.0.4.GA/server/default/lib/tobago-facelets-1.0.7.jar!/META-INF/tobago-extension.taglib.xml
| 2006-08-25 02:29:06,207 ERROR [STDERR] Aug 25, 2006 2:29:06 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
| INFO: Added Library from: jar:file:/D:/jboss-4.0.4.GA/server/default/lib/jboss-seam-ui.jar!/META-INF/seam.taglib.xml
| 2006-08-25 02:29:06,222 ERROR [STDERR] Aug 25, 2006 2:29:06 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
| INFO: Added Library from: jar:file:/D:/jboss-4.0.4.GA/server/default/lib/jsf-facelets.jar!/META-INF/jstl-fn.taglib.xml
| 2006-08-25 02:29:06,238 ERROR [STDERR] Aug 25, 2006 2:29:06 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
| INFO: Added Library from: jar:file:/D:/jboss-4.0.4.GA/server/default/lib/jsf-facelets.jar!/META-INF/jsf-core.taglib.xml
| 2006-08-25 02:29:06,254 ERROR [STDERR] Aug 25, 2006 2:29:06 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
| INFO: Added Library from: jar:file:/D:/jboss-4.0.4.GA/server/default/lib/tobago-facelets-1.0.7.jar!/META-INF/tobago.taglib.xml
| 2006-08-25 02:29:06,504 WARN [org.apache.myfaces.tobago.context.ResourceManagerImpl] patching renderer from javax.faces.FormRenderer
| 2006-08-25 02:29:06,504 WARN [org.apache.myfaces.tobago.context.ResourceManagerImpl] patching renderer to FormRenderer
| 2006-08-25 02:29:06,550 WARN [org.apache.myfaces.tobago.context.ResourceManagerImpl] patching renderer from javax.faces.SecretRenderer
| 2006-08-25 02:29:06,550 WARN [org.apache.myfaces.tobago.context.ResourceManagerImpl] patching renderer to SecretRenderer
| 2006-08-25 02:29:06,566 ERROR [org.apache.myfaces.tobago.context.ResourceManagerImpl] Path not found, and no fallback. Using empty string.
| resourceDirs = '[org/apache/myfaces/tobago/renderkit, tobago, /WEB-INF/]' contentType = 'html' theme = 'richmond' browser = 'msie' subDir = 'tag' name = 'SecretRenderer' suffix = '' key = 'null'
| 2006-08-25 02:29:06,566 ERROR [org.apache.myfaces.tobago.context.ResourceManagerImpl] name = 'SecretRenderer' clientProperties = 'html/richmond/msie'
| java.lang.NullPointerException
| at org.apache.myfaces.tobago.context.ResourceManagerImpl.getRenderer(ResourceManagerImpl.java:392)
| at org.apache.myfaces.tobago.renderkit.TobagoRenderKit.getRenderer(TobagoRenderKit.java:60)
| at javax.faces.component.UIComponentBase.getRenderer(UIComponentBase.java:527)
| at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:304)
| at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:232)
| at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239)
| at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239)
| at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:554)
| at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
| at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
| at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
| at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| at java.lang.Thread.run(Thread.java:595)
| 2006-08-25 02:29:06,566 ERROR [STDERR] Aug 25, 2006 2:29:06 AM com.sun.facelets.FaceletViewHandler handleRenderException
| SEVERE: Error Rendering View[/index.xhtml]
| java.lang.RuntimeException: SecretRenderer
| at org.apache.myfaces.tobago.context.ResourceManagerImpl.getRenderer(ResourceManagerImpl.java:398)
| at org.apache.myfaces.tobago.renderkit.TobagoRenderKit.getRenderer(TobagoRenderKit.java:60)
| at javax.faces.component.UIComponentBase.getRenderer(UIComponentBase.java:527)
| at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:304)
| at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:232)
| at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239)
| at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239)
| at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:554)
| at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
| at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
| at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
| at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: java.lang.NullPointerException
| at org.apache.myfaces.tobago.context.ResourceManagerImpl.getRenderer(ResourceManagerImpl.java:392)
| ... 28 more
| 2006-08-25 02:29:06,597 INFO [org.apache.myfaces.tobago.util.DebugPhaseListener] Total response time : 906 milliseconds
| 2006-08-25 02:29:06,597 DEBUG [javax.faces.webapp.FacesServlet] service end
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967414#3967414
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967414
19 years, 8 months
[JBoss Seam] - Can't inject entityManager into application component?
by RobJellinghaus
Why doesn't this work?
@Startup
| @Scope(APPLICATION)
| @Name("replogApplication")
| public class ReplogApplication {
| ...
| @In(create=true)
| private transient EntityManager entityManager;
|
| @Create
| public void init ()
| {
| log.debug("Creating replogApplication");
|
| // for now, create one SiteSynchronizer per defined Site
| List<Site> sites = entityManager.createQuery("from Site").getResultList(); // line 37
| ...
| }
|
I get this at startup time:
[testng] java.lang.NullPointerException
| [testng] at com.robjsoftware.replog.ReplogApplication.init(ReplogApplication.java:37)
| [testng] at com.robjsoftware.replog.ReplogApplication$$EnhancerByCGLIB$$dfe7020b.CGLIB$init$0(<generated>)
| [testng] at com.robjsoftware.replog.ReplogApplication$$EnhancerByCGLIB$$dfe7020b$$FastClassByCGLIB$$52404ff7.invoke(<generated>)
| [testng] at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:167)
| [testng] at org.jboss.seam.interceptors.JavaBeanInterceptor$1.proceed(JavaBeanInterceptor.java:80)
Why isn't an entityManager being injected? Is it against the rules for an application-scoped component to have an injected EntityManager? Couldn't find that documented anywhere. If I missed it, where was it documented?
Thanks for any clues,
Rob
(P.S. Hope you had a great vacation Gavin! ... if you're back yet! :-)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967413#3967413
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967413
19 years, 8 months
[JBossCache] - Eviction policy is not working
by myself_biswajit
Hi all,
I have developed a Caching Framework,which is a wrapper above JBoss Cache.I m using JBossCache-1.2.3 jar.My caching framework is working fine in all aspect.But just now i implemented eviction Policy.After this it is failing.
So,just give a look at my eviction policy configuration,which is like
<!-- Name of the eviction policy class. -->
org.jboss.cache.eviction.LRUPolicy
<!-- Specific eviction policy configurations. This is LRU -->
5
<!-- Cache wide default -->
5000
1000
<!-- Maximum time an object is kept in cache regardless of idle time -->
240
Error messages in the console:-
12:15:51,423 ERROR [InitServlet] Error during the initialization process of utility modules.....
12:15:51,439 INFO [STDOUT] java.lang.RuntimeException: The method createCacheService() is Failing
12:15:51,439 INFO [STDOUT] at com.dnaO2.infra.cache.service.JBossCacheService.createCacheService(JBossCacheService.java:74)
12:15:51,439 INFO [STDOUT] at com.dnaO2.infra.cache.service.CacheServiceManager.initialize(CacheServiceManager.java:69)
12:15:51,439 INFO [STDOUT] at com.dnaO2.infra.util.AppInitializer.initializeComponents(AppInitializer.java:59)
12:15:51,439 INFO [STDOUT] at com.dnaO2.infra.util.AppInitializer.initialize(AppInitializer.java:27)
12:15:51,439 INFO [STDOUT] at com.dnaO2.infra.util.init.InitServlet.init(InitServlet.java:31)
12:15:51,439 INFO [STDOUT] at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1091)
12:15:51,439 INFO [STDOUT] at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:925)
12:15:51,439 INFO [STDOUT] at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3857)
12:15:51,439 INFO [STDOUT] at org.apache.catalina.core.StandardContext.start(StandardContext.java:4118)
12:15:51,439 INFO [STDOUT] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
12:15:51,485 INFO [STDOUT] at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
12:15:51,485 INFO [STDOUT] at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
12:15:51,485 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
12:15:51,485 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
12:15:51,485 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
12:15:51,485 INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:324)
12:15:51,485 INFO [STDOUT] at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
12:15:51,485 INFO [STDOUT] at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:150)
12:15:51,485 INFO [STDOUT] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
12:15:51,485 INFO [STDOUT] at org.apache.catalina.core.StandardContext.init(StandardContext.java:5005)
12:15:51,485 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
12:15:51,485 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
12:15:51,485 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
12:15:51,501 INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:324)
12:15:51,501 INFO [STDOUT] at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
12:15:51,501 INFO [STDOUT] at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:150)
12:15:51,501 INFO [STDOUT] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
12:15:51,501 INFO [STDOUT] at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:280)
12:15:51,532 INFO [STDOUT] at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:88)
12:15:51,532 INFO [STDOUT] at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:357)
12:15:51,532 INFO [STDOUT] at org.jboss.web.WebModule.startModule(WebModule.java:68)
12:15:51,532 INFO [STDOUT] at org.jboss.web.WebModule.startService(WebModule.java:46)
12:15:51,532 INFO [STDOUT] at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
12:15:51,532 INFO [STDOUT] at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
12:15:51,532 INFO [STDOUT] at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
12:15:51,532 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
12:15:51,532 INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:324)
12:15:51,532 INFO [STDOUT] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
12:15:51,532 INFO [STDOUT] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
12:15:51,532 INFO [STDOUT] at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
12:15:51,548 INFO [STDOUT] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
12:15:51,548 INFO [STDOUT] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
12:15:51,548 INFO [STDOUT] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)
12:15:51,548 INFO [STDOUT] at $Proxy0.start(Unknown Source)
12:15:51,548 INFO [STDOUT] at org.jboss.system.ServiceController.start(ServiceController.java:428)
12:15:51,579 INFO [STDOUT] at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
12:15:51,579 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
12:15:51,579 INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:324)
12:15:51,579 INFO [STDOUT] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
12:15:51,579 INFO [STDOUT] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
12:15:51,579 INFO [STDOUT] at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
12:15:51,579 INFO [STDOUT] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
12:15:51,579 INFO [STDOUT] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
12:15:51,579 INFO [STDOUT] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
12:15:51,579 INFO [STDOUT] at $Proxy43.start(Unknown Source)
12:15:51,579 INFO [STDOUT] at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:400)
12:15:51,579 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
12:15:51,595 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
12:15:51,595 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
12:15:51,595 INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:324)
12:15:51,626 INFO [STDOUT] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
12:15:51,626 INFO [STDOUT] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
12:15:51,626 INFO [STDOUT] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
12:15:51,626 INFO [STDOUT] at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
12:15:51,626 INFO [STDOUT] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
12:15:51,626 INFO [STDOUT] at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:80)
12:15:51,626 INFO [STDOUT] at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
12:15:51,626 INFO [STDOUT] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
12:15:51,626 INFO [STDOUT] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
12:15:51,626 INFO [STDOUT] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
12:15:51,626 INFO [STDOUT] at $Proxy44.start(Unknown Source)
12:15:51,626 INFO [STDOUT] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)
12:15:51,626 INFO [STDOUT] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:979)
12:15:51,641 INFO [STDOUT] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)
12:15:51,641 INFO [STDOUT] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
12:15:51,641 INFO [STDOUT] at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
12:15:51,641 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
12:15:51,641 INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:324)
12:15:51,673 INFO [STDOUT] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
12:15:51,673 INFO [STDOUT] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
12:15:51,673 INFO [STDOUT] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
12:15:51,673 INFO [STDOUT] at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
12:15:51,673 INFO [STDOUT] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
12:15:51,673 INFO [STDOUT] at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
12:15:51,673 INFO [STDOUT] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
12:15:51,673 INFO [STDOUT] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
12:15:51,673 INFO [STDOUT] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
12:15:51,673 INFO [STDOUT] at $Proxy9.deploy(Unknown Source)
12:15:51,673 INFO [STDOUT] at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:319)
12:15:51,673 INFO [STDOUT] at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:507)
12:15:51,673 INFO [STDOUT] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:192)
12:15:51,688 INFO [STDOUT] at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:265)
12:15:51,688 INFO [STDOUT] at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
12:15:51,688 INFO [STDOUT] at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
12:15:51,688 INFO [STDOUT] at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
12:15:51,688 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
12:15:51,719 INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:324)
12:15:51,719 INFO [STDOUT] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
12:15:51,719 INFO [STDOUT] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
12:15:51,719 INFO [STDOUT] at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
12:15:51,719 INFO [STDOUT] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
12:15:51,719 INFO [STDOUT] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
12:15:51,719 INFO [STDOUT] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)
12:15:51,719 INFO [STDOUT] at $Proxy0.start(Unknown Source)
12:15:51,719 INFO [STDOUT] at org.jboss.system.ServiceController.start(ServiceController.java:428)
12:15:51,719 INFO [STDOUT] at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
12:15:51,719 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
12:15:51,719 INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:324)
12:15:51,719 INFO [STDOUT] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
12:15:51,735 INFO [STDOUT] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
12:15:51,735 INFO [STDOUT] at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
12:15:51,735 INFO [STDOUT] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
12:15:51,735 INFO [STDOUT] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
12:15:51,735 INFO [STDOUT] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
12:15:51,766 INFO [STDOUT] at $Proxy4.start(Unknown Source)
12:15:51,766 INFO [STDOUT] at org.jboss.deployment.SARDeployer.start(SARDeployer.java:285)
12:15:51,766 INFO [STDOUT] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)
12:15:51,766 INFO [STDOUT] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)
12:15:51,766 INFO [STDOUT] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
12:15:51,766 INFO [STDOUT] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:737)
12:15:51,766 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
12:15:51,766 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
12:15:51,766 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
12:15:51,766 INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:324)
12:15:51,797 INFO [STDOUT] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
12:15:51,797 INFO [STDOUT] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
12:15:51,797 INFO [STDOUT] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
12:15:51,797 INFO [STDOUT] at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
12:15:51,797 INFO [STDOUT] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
12:15:51,797 INFO [STDOUT] at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
12:15:51,797 INFO [STDOUT] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
12:15:51,797 INFO [STDOUT] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
12:15:51,797 INFO [STDOUT] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
12:15:51,797 INFO [STDOUT] at $Proxy5.deploy(Unknown Source)
12:15:51,797 INFO [STDOUT] at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:453)
12:15:51,797 INFO [STDOUT] at org.jboss.system.server.ServerImpl.start(ServerImpl.java:330)
12:15:51,813 INFO [STDOUT] at org.jboss.Main.boot(Main.java:187)
12:15:51,813 INFO [STDOUT] at org.jboss.Main$1.run(Main.java:438)
12:15:51,813 INFO [STDOUT] at java.lang.Thread.run(Thread.java:534)
12:15:51,813 INFO [STDOUT] Caused by: org.jboss.util.NestedRuntimeException: - nested throwable: (java.lang.NullPointerException)
12:15:51,813 INFO [STDOUT] at org.jboss.cache.TreeCache.invokeMethod(TreeCache.java:3121)
12:15:51,813 INFO [STDOUT] at org.jboss.cache.TreeCache.get(TreeCache.java:1571)
12:15:51,813 INFO [STDOUT] at org.jboss.cache.TreeCache.get(TreeCache.java:1555)
12:15:51,813 INFO [STDOUT] at org.jboss.cache.TreeCache.preload(TreeCache.java:1360)
12:15:51,813 INFO [STDOUT] at org.jboss.cache.TreeCache.cacheLoaderPreload(TreeCache.java:1335)
12:15:51,813 INFO [STDOUT] at org.jboss.cache.TreeCache.startService(TreeCache.java:1129)
12:15:51,813 INFO [STDOUT] at com.dnaO2.infra.cache.service.JBossCacheService.createCacheService(JBossCacheService.java:65)
12:15:51,813 INFO [STDOUT] ... 138 more
12:15:51,860 INFO [STDOUT] Caused by: java.lang.NullPointerException
12:15:51,860 INFO [STDOUT] at org.jboss.cache.eviction.LRUPolicy.nodeVisited(LRUPolicy.java:104)
12:15:51,860 INFO [STDOUT] at org.jboss.cache.TreeCache.notifyNodeVisisted(TreeCache.java:3192)
12:15:51,860 INFO [STDOUT] at org.jboss.cache.TreeCache._get(TreeCache.java:1564)
12:15:51,860 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
12:15:51,860 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
12:15:51,860 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
12:15:51,860 INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:324)
12:15:51,860 INFO [STDOUT] at org.jgroups.blocks.MethodCall.invoke(MethodCall.java:236)
12:15:51,860 INFO [STDOUT] at org.jboss.cache.interceptors.CallInterceptor.invoke(CallInterceptor.java:33)
12:15:51,875 INFO [STDOUT] at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:41)
12:15:51,875 INFO [STDOUT] at org.jboss.cache.interceptors.LockInterceptor.invoke(LockInterceptor.java:167)
12:15:51,875 INFO [STDOUT] at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:41)
12:15:51,875 INFO [STDOUT] at org.jboss.cache.interceptors.CacheLoaderInterceptor.invoke(CacheLoaderInterceptor.java:120)
12:15:51,875 INFO [STDOUT] at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:41)
12:15:51,875 INFO [STDOUT] at org.jboss.cache.interceptors.UnlockInterceptor.invoke(UnlockInterceptor.java:35)
12:15:51,875 INFO [STDOUT] at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:41)
12:15:51,875 INFO [STDOUT] at org.jboss.cache.interceptors.ReplicationInterceptor.invoke(ReplicationInterceptor.java:54)
12:15:51,907 INFO [STDOUT] at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:41)
12:15:51,907 INFO [STDOUT] at org.jboss.cache.interceptors.CacheStoreInterceptor.invoke(CacheStoreInterceptor.java:104)
12:15:51,907 INFO [STDOUT] at org.jboss.cache.TreeCache.invokeMethod(TreeCache.java:3116)
12:15:51,907 INFO [STDOUT] ... 144 more
Please suggest me any appropraiate solution for this because this kind of work stopper for me.
Thanks in advance,
Biswajit
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967412#3967412
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967412
19 years, 8 months