[Clustering/JBoss] - Re: Problem with datasources, they start, but my apps cannot
by bstansberryï¼ jboss.com
No, using Hypersonic in production is not recommended. It's an in-process DB; if your app server process crashes, so does your DB. The app server needs a database, so we bundle Hypersonic so the AS will work out of the box on a developer's workstation, but it's not meant for production.
For your JMS config, here's what I recommend you do:
1) Make a copy of your 'pok' config so you still have a backup. :)
2) Start with the default config. Modify the JMS configuration so it talks to your mysql database. Get it working so that when you start default, JMS is starting cleanly and working with your mysql database. (No need to deploy anything of your own, except, if you like, your queues/topic.)
3) Go to your 'pok' config. Delete the deploy/jms and deploy-hasingleton/jms folders. Copy your modified deploy/jms directory from default.
You're not trying to use HA-JMS, so starting with an HA-JMS config and trying to change it to non-HA is much more prone to error than starting with a non-HA config.
Re: your NPE, it looks like there is some JNDI lookup problem finding PokQueryDS:
22:10:52,325 INFO [STDOUT] PokQueryDs not bound
You need to debug exactly what name your code is looking for and why it's not finding it.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024348#4024348
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024348
17Â years, 10Â months
[Beginners Corner] - Cannot create txtimer on Jboss 4.0.2
by rahul_juneja
Guys, I am getting this problem when trying to deploy my application and my application when deployed starts certain queues which are managed with the timers of Jboss. The version of Jboss AS i am using is 4.0.2 and this timer functionality goes well with this version because i have seen this working before the current change.
2007-03-01 11:02:43,602 DEBUG [org.jboss.ejb.txtimer.TimerImpl] setTimerState: created
| 2007-03-01 11:02:43,602 ERROR [org.jboss.ejb.txtimer.TimerServiceImpl] Cannot create txtimer
| java.lang.NullPointerException
| at org.jboss.ejb.txtimer.DatabasePersistencePolicy.insertTimer(DatabasePersistencePolicy.java:134)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:324)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
| at org.jboss.mx.util.JMXInvocationHandler.invoke(JMXInvocationHandler.java:273)
| at $Proxy336.insertTimer(Unknown Source)
| at org.jboss.ejb.txtimer.TimerServiceImpl.createTimer(TimerServiceImpl.java:212)
| at org.jboss.ejb.txtimer.TimerServiceImpl.createTimer(TimerServiceImpl.java:178)
| at org.jboss.ejb.StatelessSessionEnterpriseContext$TimerServiceWrapper.createTimer(StatelessSessionEnterpriseContext.java:267)
| at com.cnsi.processor.qc.ejb.QueueControllerSessionBean.scheduleQueueStart(QueueControllerSessionBean.java:58)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:324)
| at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
| at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:214)
| at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185)
| at org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor.java:51)
| at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
| at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:105)
| at org.jboss.ejb.plugins.AbstractTxInterceptorBMT.invokeNext(AbstractTxInterceptorBMT.java:153)
| at org.jboss.ejb.plugins.TxInterceptorBMT.invoke(TxInterceptorBMT.java:62)
| at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:130)
| at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:139)
| at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
| at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
| at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
| at org.jboss.ejb.Container.invoke(Container.java:873)
| at sun.reflect.GeneratedMethodAccessor84.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:324)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
| at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:155)
| at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:104)
| at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:179)
| at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:165)
| at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
| at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:55)
| at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:97)
| at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:86)
| at $Proxy288.scheduleQueueStart(Unknown Source)
| at com.cnsi.processing.ProcessingStartupServlet.init(ProcessingStartupServlet.java:104)
| at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1091)
| at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:925)
| at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3857)
| at org.apache.catalina.core.StandardContext.start(StandardContext.java:4118)
| at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
| at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
| at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:324)
| at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
| at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:150)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
| at org.apache.catalina.core.StandardContext.init(StandardContext.java:5005)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:324)
| at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
| at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:150)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
| at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:274)
| at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:91)
| at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:357)
| at org.jboss.web.WebModule.startModule(WebModule.java:68)
| at org.jboss.web.WebModule.startService(WebModule.java:46)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222)
| at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:324)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:897)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:418)
| at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:324)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
| at $Proxy28.start(Unknown Source)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024344#4024344
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024344
17Â years, 10Â months
[JBoss Seam] - Pageflow and servlet requests
by igorla
Hi,
I have a pageflow that consists of 3 pages. It works fine.
Then, I've decided to add an applet to the second page. The applet performs several requests to my servlet during loading.
Now, when I press button 'Next' which action that should take me to third page, instead of this, I get error: "The conversation ended, timed out or was processing another request
"
Some more details:
1) Since my servlet need to access to components from current conversation scope, I've added these lines at the beginning of request handling:
Manager.instance().restoreConversation(request.getParameterMap());
Manager.instance().handleConversationPropagation(
request.getParameterMap());
2) URL, that applet accesses the servlet has also additional parameters like conversationId, conversationIsLongRunning=true and conversationPropagation=join
>From my observation, when the button 'Next' is pressed, 'processInstance' in Pageflow.class is null, so the outcome that comes from the action isn't handled by Pageflow navigator.
I didn't succeed to find when and why 'processInstance' becomes null.
Should I pass additional parameters to the servlet URL?
I'm working with 1.1.0 GA, in 1.0.1 this problem wasn't present.
Thanks,
Igor
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024342#4024342
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024342
17Â years, 10Â months