[JBossWS] - calling a web service from the standlone client
by mandarkul
I am trying to access a web service deployed on JBoss thtough a statndalone client.
The web service is deployed sucessfully as I can see the web service in JBoss's web service console(jbossws).
But when i execute the following code :
| public static void main(String[] args) {
| try {
| String nameSpaceURL = "http://webservice.test.com/";
| String webServiceURL = "http://127.0.0.1:4040/MySessionBeanService/MySessionBean?wsdl";
| URL wsdlLocation = new URL(webServiceURL);
| QName serviceQ = new QName(nameSpaceURL,"testService");
| Service service = Service.create(wsdlLocation,serviceQ);
| MySession mysession = service.getPort(MySession.class);
| mysession.sayHello();
| } catch (MalformedURLException e) {
| e.printStackTrace();
| }
| }
|
|
I get a very strange exception with the stack trace as follows :
Exception in thread "main" java.lang.NoSuchMethodError: javassist.ClassPool.<init>(Z)V
| at org.jboss.ws.core.jaxws.DynamicWrapperGenerator.init(DynamicWrapperGenerator.java:71)
| at org.jboss.ws.core.jaxws.DynamicWrapperGenerator.<init>(DynamicWrapperGenerator.java:66)
| at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilder.initWrapperGenerator(JAXWSMetaDataBuilder.java:856)
| at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilder.resetMetaDataBuilder(JAXWSMetaDataBuilder.java:862)
| at org.jboss.ws.metadata.builder.jaxws.JAXWSClientMetaDataBuilder.rebuildEndpointMetaData(JAXWSClientMetaDataBuilder.java:258)
| at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.getPortInternal(ServiceDelegateImpl.java:274)
| at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.getPort(ServiceDelegateImpl.java:263)
| at javax.xml.ws.Service.getPort(Service.java:185)
| at org.jboss.ws.core.jaxws.client.ServiceExt.getPort(ServiceExt.java:123)
| at sample.WebServiceClient.main(WebServiceClient.java:23)
I also get a Log4j warning as,
log4j:WARN No appenders could be found for logger (org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder).
| log4j:WARN Please initialize the log4j system properly.
But I don't think that this warning can lead to such a weird error.
I have following jars from jboss.home/client/lib on classpath :
jaxb-xjc.jar
stax-api-1.0.jar
sjsxp.jar
jaxb-api.jar
jaxb-impl.jar
activation.jar
jboss-jaxws.jar
jboss-saaj.jar
jbossws-client.jar
jboss-xml-bindig.jar
stax-api.jar
xercesImpl.jar
mail.jar
Can anyone help me to solve the problem?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044617#4044617
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044617
19 years, 1 month
[O'Reilly JBoss 3.0/4.0 Workbook] - Re: Alternative class for the LocalTxConnectionManager in Jb
by himm66
Hi all
Welcome to the cheapest discount cigarettes store ever. You can find here all the brands at a low price. Online cigarettes, cheap smokes. http://www.all-cigarettes-brands.com , http://www.cheap-cigarettes-brands.com , http://www.smoker-heaven.com http://www.the-cheapest-cigarettes.com , http://www.best-buy-cigarettes.com , http://www.smoke-discount-cigarettes.com
Cheap Drugs Online, the best online drug store with high quality products. Visit our online shop and you will not be disappointed. http://www.all-drugs-online.com , http://www.viagra-vitamins.com , http://www.medoutlet.net http://www.pharmawholesaler.com
Our online cigarettes shop is the best choice for smokers.. You can find here Marlboro, Camel, Kent and other brands at a lowest price. Online discount cigarettes. http://www.cigbrand.com ,
http://www.cigarettes-market.com , http://www.smoke4sale.com , http://www.topcigshop.com
You can buy best cigarettes online now!!! Discount Marlboro, Davidoff, Parliament and other premium and generic brands from Europe at our Eshop only. Cheap cigarettes prices. http://www.topcigarettesonline.com , http://www.salecigarettesonline.com , http://www.shop-smoke.com , http://www.shop-cigarette.com
Cheap cigarettes from Europe!!! Visit our online cigarettes shop to order all the famous brands: Marlboro, Camel, Chesterfield, Kent at discount. Cheap prices, best quality you always imagined. Buy now and you will win!!!
http://www.cigarettes-blog.com , http://www.buy-euro-cigarettes.com , http://www.discount-euro-cigarettes.com
Buy the best cheapest cigarettes online. You can purchase all the famous European brands at discount: Marlboro, Camel, Chesterfield, Kent. Make your choice to buy the best: http://www.all4smokers.net , http://www.smokingbrands4sale.com, http://www.marlboro4sale.net http://www.on-line-cigarettes.com
Cheap best Steroids Online, the best online store offers all the medicines for bodybuilding. Be nice and healthy with high quality products. Visit our online shop and you will not be disappointed. http://www.medoutlet.net , http://www.fitnessmed.net http://www.pharmasport.org
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044615#4044615
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044615
19 years, 1 month
[Advanced Documentation] - Re: Jboss.xml (deployment descriptor)
by himm66
Hi all
Welcome to the cheapest discount cigarettes store ever. You can find here all the brands at a low price. Online cigarettes, cheap smokes. http://www.all-cigarettes-brands.com , http://www.cheap-cigarettes-brands.com , http://www.smoker-heaven.com http://www.the-cheapest-cigarettes.com , http://www.best-buy-cigarettes.com , http://www.smoke-discount-cigarettes.com
Cheap Drugs Online, the best online drug store with high quality products. Visit our online shop and you will not be disappointed. http://www.all-drugs-online.com , http://www.viagra-vitamins.com , http://www.medoutlet.net http://www.pharmawholesaler.com
Our online cigarettes shop is the best choice for smokers.. You can find here Marlboro, Camel, Kent and other brands at a lowest price. Online discount cigarettes. http://www.cigbrand.com ,
http://www.cigarettes-market.com , http://www.smoke4sale.com , http://www.topcigshop.com
You can buy best cigarettes online now!!! Discount Marlboro, Davidoff, Parliament and other premium and generic brands from Europe at our Eshop only. Cheap cigarettes prices. http://www.topcigarettesonline.com , http://www.salecigarettesonline.com , http://www.shop-smoke.com , http://www.shop-cigarette.com
Cheap cigarettes from Europe!!! Visit our online cigarettes shop to order all the famous brands: Marlboro, Camel, Chesterfield, Kent at discount. Cheap prices, best quality you always imagined. Buy now and you will win!!!
http://www.cigarettes-blog.com , http://www.buy-euro-cigarettes.com , http://www.discount-euro-cigarettes.com
Buy the best cheapest cigarettes online. You can purchase all the famous European brands at discount: Marlboro, Camel, Chesterfield, Kent. Make your choice to buy the best: http://www.all4smokers.net , http://www.smokingbrands4sale.com, http://www.marlboro4sale.net http://www.on-line-cigarettes.com
Cheap best Steroids Online, the best online store offers all the medicines for bodybuilding. Be nice and healthy with high quality products. Visit our online shop and you will not be disappointed. http://www.medoutlet.net , http://www.fitnessmed.net http://www.pharmasport.org
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044614#4044614
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044614
19 years, 1 month
[JBoss Getting Started Documentation] - Re: Bank example compile error.
by himm66
Hi all
Welcome to the cheapest discount cigarettes store ever. You can find here all the brands at a low price. Online cigarettes, cheap smokes. http://www.all-cigarettes-brands.com , http://www.cheap-cigarettes-brands.com , http://www.smoker-heaven.com http://www.the-cheapest-cigarettes.com , http://www.best-buy-cigarettes.com , http://www.smoke-discount-cigarettes.com
Cheap Drugs Online, the best online drug store with high quality products. Visit our online shop and you will not be disappointed. http://www.all-drugs-online.com , http://www.viagra-vitamins.com , http://www.medoutlet.net http://www.pharmawholesaler.com
Our online cigarettes shop is the best choice for smokers.. You can find here Marlboro, Camel, Kent and other brands at a lowest price. Online discount cigarettes. http://www.cigbrand.com ,
http://www.cigarettes-market.com , http://www.smoke4sale.com , http://www.topcigshop.com
You can buy best cigarettes online now!!! Discount Marlboro, Davidoff, Parliament and other premium and generic brands from Europe at our Eshop only. Cheap cigarettes prices. http://www.topcigarettesonline.com , http://www.salecigarettesonline.com , http://www.shop-smoke.com , http://www.shop-cigarette.com
Cheap cigarettes from Europe!!! Visit our online cigarettes shop to order all the famous brands: Marlboro, Camel, Chesterfield, Kent at discount. Cheap prices, best quality you always imagined. Buy now and you will win!!!
http://www.cigarettes-blog.com , http://www.buy-euro-cigarettes.com , http://www.discount-euro-cigarettes.com
Buy the best cheapest cigarettes online. You can purchase all the famous European brands at discount: Marlboro, Camel, Chesterfield, Kent. Make your choice to buy the best: http://www.all4smokers.net , http://www.smokingbrands4sale.com, http://www.marlboro4sale.net http://www.on-line-cigarettes.com
Cheap best Steroids Online, the best online store offers all the medicines for bodybuilding. Be nice and healthy with high quality products. Visit our online shop and you will not be disappointed. http://www.medoutlet.net , http://www.fitnessmed.net http://www.pharmasport.org
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044613#4044613
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044613
19 years, 1 month
[JBoss Getting Started Documentation] - Re: Bank example build error
by himm66
Hi all
Welcome to the cheapest discount cigarettes store ever. You can find here all the brands at a low price. Online cigarettes, cheap smokes. http://www.all-cigarettes-brands.com , http://www.cheap-cigarettes-brands.com , http://www.smoker-heaven.com http://www.the-cheapest-cigarettes.com , http://www.best-buy-cigarettes.com , http://www.smoke-discount-cigarettes.com
Cheap Drugs Online, the best online drug store with high quality products. Visit our online shop and you will not be disappointed. http://www.all-drugs-online.com , http://www.viagra-vitamins.com , http://www.medoutlet.net http://www.pharmawholesaler.com
Our online cigarettes shop is the best choice for smokers.. You can find here Marlboro, Camel, Kent and other brands at a lowest price. Online discount cigarettes. http://www.cigbrand.com ,
http://www.cigarettes-market.com , http://www.smoke4sale.com , http://www.topcigshop.com
You can buy best cigarettes online now!!! Discount Marlboro, Davidoff, Parliament and other premium and generic brands from Europe at our Eshop only. Cheap cigarettes prices. http://www.topcigarettesonline.com , http://www.salecigarettesonline.com , http://www.shop-smoke.com , http://www.shop-cigarette.com
Cheap cigarettes from Europe!!! Visit our online cigarettes shop to order all the famous brands: Marlboro, Camel, Chesterfield, Kent at discount. Cheap prices, best quality you always imagined. Buy now and you will win!!!
http://www.cigarettes-blog.com , http://www.buy-euro-cigarettes.com , http://www.discount-euro-cigarettes.com
Buy the best cheapest cigarettes online. You can purchase all the famous European brands at discount: Marlboro, Camel, Chesterfield, Kent. Make your choice to buy the best: http://www.all4smokers.net , http://www.smokingbrands4sale.com, http://www.marlboro4sale.net http://www.on-line-cigarettes.com
Cheap best Steroids Online, the best online store offers all the medicines for bodybuilding. Be nice and healthy with high quality products. Visit our online shop and you will not be disappointed. http://www.medoutlet.net , http://www.fitnessmed.net http://www.pharmasport.org
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044612#4044612
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044612
19 years, 1 month
[JBoss Portal] - CMSPortlet: problems with IE, https and links referencing PD
by engela
I am using the CMSPortlet on one of my pages. The content of the pages references a PDF file. When I click on the link I get the following error:
Internet Explorer cannot download xxx.pdf from localhost. The file could not be written to the cache.
The problem only occurs with Internet Explorer and https. The following error messages is thrown:
09:43:46,718 ERROR [PortalServlet] Unexpected exception
| java.lang.IllegalStateException
| at org.apache.catalina.connector.ResponseFacade.sendError(ResponseFacade.java:404)
| at org.jboss.portal.core.cms.command.StreamContentCommand.execute(StreamContentCommand.java:123)
| at org.jboss.portal.core.command.ControllerCommand.dispatch(ControllerCommand.java:84)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:141)
| at org.jboss.portal.core.aspects.controller.EventBroadcasterInterceptor.invoke(EventBroadcasterInterceptor.java:168)
| at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.core.aspects.controller.PageNavigationInterceptor.invoke(PageNavigationInterceptor.java:103)
| at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.core.aspects.controller.PolicyEnforcementInterceptor.invoke(PolicyEnforcementInterceptor.java:79)
| at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.core.aspects.controller.PortalNodeInterceptor.invoke(PortalNodeInterceptor.java:59)
| at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:171)
| at org.jboss.portal.core.command.CommandContext.execute(CommandContext.java:102)
| at org.jboss.portal.core.command.ExecutionContext.execute(ExecutionContext.java:92)
| at org.jboss.portal.core.command.ExecutionContext.execute(ExecutionContext.java:79)
| at org.jboss.portal.core.CoreController.handle(CoreController.java:130)
| 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:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.JMXInvocationHandler.invoke(JMXInvocationHandler.java:287)
| at $Proxy141.handle(Unknown Source)
| at org.jboss.portal.server.ServerInvocation.dispatch(ServerInvocation.java:80)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:141)
| at org.jboss.portal.server.aspects.server.NavigationInterceptor.invoke(NavigationInterceptor.java:65)
| at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.server.aspects.server.ContentTypeInterceptor.invoke(ContentTypeInterceptor.java:65)
| at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.core.aspects.server.LocaleInterceptor.invoke(LocaleInterceptor.java:73)
| at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.core.aspects.server.UserInterceptor.invoke(UserInterceptor.java:175)
| at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.server.aspects.server.SessionInvalidatorInterceptor.invoke(SessionInvalidatorInterceptor.java:84)
| at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.core.aspects.server.TransactionInterceptor.org$jboss$portal$core$aspects$server$TransactionInterceptor$invoke$aop(TransactionInterceptor.java:49)
| at org.jboss.portal.core.aspects.server.TransactionInterceptor$invoke_N5143606530999904530.invokeNext(TransactionInterceptor$invoke_N5143606530999904530.java)
| at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
| at org.jboss.aspects.tx.TxInterceptor$RequiresNew.invoke(TxInterceptor.java:275)
| at org.jboss.portal.core.aspects.server.TransactionInterceptor$invoke_N5143606530999904530.invokeNext(TransactionInterceptor$invoke_N5143606530999904530.java)
| at org.jboss.portal.core.aspects.server.TransactionInterceptor.invoke(TransactionInterceptor.java)
| at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:171)
| at org.jboss.portal.server.servlet.PortalServlet.process(PortalServlet.java:295)
| at org.jboss.portal.server.servlet.PortalServlet.doGet(PortalServlet.java:173)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| 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:524)
| 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)
| 09:43:46,718 ERROR [[PortalServletWithPathMapping]] Servlet.service() for servlet PortalServletWithPathMapping threw exception
| java.lang.IllegalStateException
| at org.apache.catalina.connector.ResponseFacade.sendError(ResponseFacade.java:404)
| at org.jboss.portal.core.cms.command.StreamContentCommand.execute(StreamContentCommand.java:123)
| at org.jboss.portal.core.command.ControllerCommand.dispatch(ControllerCommand.java:84)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:141)
| at org.jboss.portal.core.aspects.controller.EventBroadcasterInterceptor.invoke(EventBroadcasterInterceptor.java:168)
| at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.core.aspects.controller.PageNavigationInterceptor.invoke(PageNavigationInterceptor.java:103)
| at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.core.aspects.controller.PolicyEnforcementInterceptor.invoke(PolicyEnforcementInterceptor.java:79)
| at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.core.aspects.controller.PortalNodeInterceptor.invoke(PortalNodeInterceptor.java:59)
| at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:171)
| at org.jboss.portal.core.command.CommandContext.execute(CommandContext.java:102)
| at org.jboss.portal.core.command.ExecutionContext.execute(ExecutionContext.java:92)
| at org.jboss.portal.core.command.ExecutionContext.execute(ExecutionContext.java:79)
| at org.jboss.portal.core.CoreController.handle(CoreController.java:130)
| 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:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.JMXInvocationHandler.invoke(JMXInvocationHandler.java:287)
| at $Proxy141.handle(Unknown Source)
| at org.jboss.portal.server.ServerInvocation.dispatch(ServerInvocation.java:80)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:141)
| at org.jboss.portal.server.aspects.server.NavigationInterceptor.invoke(NavigationInterceptor.java:65)
| at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.server.aspects.server.ContentTypeInterceptor.invoke(ContentTypeInterceptor.java:65)
| at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.core.aspects.server.LocaleInterceptor.invoke(LocaleInterceptor.java:73)
| at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.core.aspects.server.UserInterceptor.invoke(UserInterceptor.java:175)
| at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.server.aspects.server.SessionInvalidatorInterceptor.invoke(SessionInvalidatorInterceptor.java:84)
| at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.core.aspects.server.TransactionInterceptor.org$jboss$portal$core$aspects$server$TransactionInterceptor$invoke$aop(TransactionInterceptor.java:49)
| at org.jboss.portal.core.aspects.server.TransactionInterceptor$invoke_N5143606530999904530.invokeNext(TransactionInterceptor$invoke_N5143606530999904530.java)
| at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
| at org.jboss.aspects.tx.TxInterceptor$RequiresNew.invoke(TxInterceptor.java:275)
| at org.jboss.portal.core.aspects.server.TransactionInterceptor$invoke_N5143606530999904530.invokeNext(TransactionInterceptor$invoke_N5143606530999904530.java)
| at org.jboss.portal.core.aspects.server.TransactionInterceptor.invoke(TransactionInterceptor.java)
| at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:171)
| at org.jboss.portal.server.servlet.PortalServlet.process(PortalServlet.java:295)
| at org.jboss.portal.server.servlet.PortalServlet.doGet(PortalServlet.java:173)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| 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:524)
| 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)
| 09:55:25,338 ERROR [PortalServlet] Unexpected exception
| java.lang.IllegalStateException
| at org.apache.catalina.connector.ResponseFacade.sendError(ResponseFacade.java:404)
| at org.jboss.portal.core.cms.command.StreamContentCommand.execute(StreamContentCommand.java:123)
| at org.jboss.portal.core.command.ControllerCommand.dispatch(ControllerCommand.java:84)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:141)
| at org.jboss.portal.core.aspects.controller.EventBroadcasterInterceptor.invoke(EventBroadcasterInterceptor.java:168)
| at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.core.aspects.controller.PageNavigationInterceptor.invoke(PageNavigationInterceptor.java:103)
| at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.core.aspects.controller.PolicyEnforcementInterceptor.invoke(PolicyEnforcementInterceptor.java:79)
| at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.core.aspects.controller.PortalNodeInterceptor.invoke(PortalNodeInterceptor.java:59)
| at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:171)
| at org.jboss.portal.core.command.CommandContext.execute(CommandContext.java:102)
| at org.jboss.portal.core.command.ExecutionContext.execute(ExecutionContext.java:92)
| at org.jboss.portal.core.command.ExecutionContext.execute(ExecutionContext.java:79)
| at org.jboss.portal.core.CoreController.handle(CoreController.java:130)
| at sun.reflect.GeneratedMethodAccessor230.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.JMXInvocationHandler.invoke(JMXInvocationHandler.java:287)
| at $Proxy141.handle(Unknown Source)
| at org.jboss.portal.server.ServerInvocation.dispatch(ServerInvocation.java:80)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:141)
| at org.jboss.portal.server.aspects.server.NavigationInterceptor.invoke(NavigationInterceptor.java:65)
| at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.server.aspects.server.ContentTypeInterceptor.invoke(ContentTypeInterceptor.java:65)
| at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.core.aspects.server.LocaleInterceptor.invoke(LocaleInterceptor.java:73)
| at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.core.aspects.server.UserInterceptor.invoke(UserInterceptor.java:175)
| at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.server.aspects.server.SessionInvalidatorInterceptor.invoke(SessionInvalidatorInterceptor.java:84)
| at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.core.aspects.server.TransactionInterceptor.org$jboss$portal$core$aspects$server$TransactionInterceptor$invoke$aop(TransactionInterceptor.java:49)
| at org.jboss.portal.core.aspects.server.TransactionInterceptor$invoke_N5143606530999904530.invokeNext(TransactionInterceptor$invoke_N5143606530999904530.java)
| at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
| at org.jboss.aspects.tx.TxInterceptor$RequiresNew.invoke(TxInterceptor.java:275)
| at org.jboss.portal.core.aspects.server.TransactionInterceptor$invoke_N5143606530999904530.invokeNext(TransactionInterceptor$invoke_N5143606530999904530.java)
| at org.jboss.portal.core.aspects.server.TransactionInterceptor.invoke(TransactionInterceptor.java)
| at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:171)
| at org.jboss.portal.server.servlet.PortalServlet.process(PortalServlet.java:295)
| at org.jboss.portal.server.servlet.PortalServlet.doGet(PortalServlet.java:173)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| 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:524)
| 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)
| 09:55:25,338 ERROR [[PortalServletWithPathMapping]] Servlet.service() for servlet PortalServletWithPathMapping threw exception
| java.lang.IllegalStateException
| at org.apache.catalina.connector.ResponseFacade.sendError(ResponseFacade.java:404)
| at org.jboss.portal.core.cms.command.StreamContentCommand.execute(StreamContentCommand.java:123)
| at org.jboss.portal.core.command.ControllerCommand.dispatch(ControllerCommand.java:84)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:141)
| at org.jboss.portal.core.aspects.controller.EventBroadcasterInterceptor.invoke(EventBroadcasterInterceptor.java:168)
| at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.core.aspects.controller.PageNavigationInterceptor.invoke(PageNavigationInterceptor.java:103)
| at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.core.aspects.controller.PolicyEnforcementInterceptor.invoke(PolicyEnforcementInterceptor.java:79)
| at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.core.aspects.controller.PortalNodeInterceptor.invoke(PortalNodeInterceptor.java:59)
| at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:171)
| at org.jboss.portal.core.command.CommandContext.execute(CommandContext.java:102)
| at org.jboss.portal.core.command.ExecutionContext.execute(ExecutionContext.java:92)
| at org.jboss.portal.core.command.ExecutionContext.execute(ExecutionContext.java:79)
| at org.jboss.portal.core.CoreController.handle(CoreController.java:130)
| at sun.reflect.GeneratedMethodAccessor230.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.JMXInvocationHandler.invoke(JMXInvocationHandler.java:287)
| at $Proxy141.handle(Unknown Source)
| at org.jboss.portal.server.ServerInvocation.dispatch(ServerInvocation.java:80)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:141)
| at org.jboss.portal.server.aspects.server.NavigationInterceptor.invoke(NavigationInterceptor.java:65)
| at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.server.aspects.server.ContentTypeInterceptor.invoke(ContentTypeInterceptor.java:65)
| at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.core.aspects.server.LocaleInterceptor.invoke(LocaleInterceptor.java:73)
| at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.core.aspects.server.UserInterceptor.invoke(UserInterceptor.java:175)
| at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.server.aspects.server.SessionInvalidatorInterceptor.invoke(SessionInvalidatorInterceptor.java:84)
| at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.core.aspects.server.TransactionInterceptor.org$jboss$portal$core$aspects$server$TransactionInterceptor$invoke$aop(TransactionInterceptor.java:49)
| at org.jboss.portal.core.aspects.server.TransactionInterceptor$invoke_N5143606530999904530.invokeNext(TransactionInterceptor$invoke_N5143606530999904530.java)
| at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
| at org.jboss.aspects.tx.TxInterceptor$RequiresNew.invoke(TxInterceptor.java:275)
| at org.jboss.portal.core.aspects.server.TransactionInterceptor$invoke_N5143606530999904530.invokeNext(TransactionInterceptor$invoke_N5143606530999904530.java)
| at org.jboss.portal.core.aspects.server.TransactionInterceptor.invoke(TransactionInterceptor.java)
| at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:171)
| at org.jboss.portal.server.servlet.PortalServlet.process(PortalServlet.java:295)
| at org.jboss.portal.server.servlet.PortalServlet.doGet(PortalServlet.java:173)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| 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:524)
| 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)
Does anyone know how to solve this problem (other then dumping IE and using Firefox instead).
Thanks,
Anette
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044608#4044608
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044608
19 years, 1 month
[EJB/JBoss] - TimerService and Timer
by gardon
Hello,
I need to create repetitive task using EJB in JBoss 4.0.5. I decide to use TimerService and Timer as introduced in the EJB 2.1 specification.
Here is the bean code:
| /**
| * @author Stanislav Gardon
| * @ejb.bean description = "OnlineTerminalsStat" display-name =
| * "OnlineTerminalsStat" type = "Stateless" name =
| * "OnlineTerminalsStat" view-type = "local" local-jndi-name =
| * "local/OnlineTerminalsStat" transaction-type = "Container" generate =
| * "true"
| */
| public class OnlineTerminalsStatBean implements SessionBean, TimedObject {
|
| /**
| * Interval spustania
| */
| private static final long INTERVAL_DURATION = 5000;
|
| /**
| * Aktualny SessionContext
| */
| private SessionContext sessionContext;
|
| /**
| * Logger
| */
| private Logger logger = Logger.getLogger(OnlineTerminalsStatBean.class);
|
| /**
| *
| */
| public OnlineTerminalsStatBean() {
| super();
| }
|
| /*
| * (non-Javadoc)
| *
| * @see javax.ejb.SessionBean#ejbActivate()
| */
| public void ejbActivate() throws EJBException, RemoteException {
| }
|
| /*
| * (non-Javadoc)
| *
| * @see javax.ejb.SessionBean#ejbPassivate()
| */
| public void ejbPassivate() throws EJBException, RemoteException {
| }
|
| /*
| * (non-Javadoc)
| *
| * @see javax.ejb.SessionBean#ejbRemove()
| */
| public void ejbRemove() throws EJBException, RemoteException {
| }
|
| /**
| *
| * @throws CreateException
| * @ejb.create-method view-type = "local"
| */
| public void ejbCreate() throws CreateException {
| }
|
| /*
| * (non-Javadoc)
| *
| * @see javax.ejb.SessionBean#setSessionContext(javax.ejb.SessionContext)
| */
| public void setSessionContext(SessionContext arg0) throws EJBException,
| RemoteException {
| this.sessionContext = arg0;
| }
|
| /**
| *
| * @ejb.interface-method view-type = "local"
| * @ejb.transaction type = "Required"
| */
| public void createTimer() {
| TimerService ts = sessionContext.getTimerService();
| Timer t = ts.createTimer(new Date(System.currentTimeMillis() + 5000),
| INTERVAL_DURATION, null);
| logger.debug("timer created");
| logger.debug("total timers: " + ts.getTimers().size());
| }
|
| /**
| * @see javax.ejb.TimedObject#ejbTimeout(javax.ejb.Timer)
| * @ejb.interface-method view-type = "local"
| * @ejb.transaction type = "RequiresNew"
| */
| public void ejbTimeout(Timer t) {
| logger.debug("ejbTimout, Timer: " + t);
| try {
| DataSource ds = DbUtil.dataSourceTx();
| Connection c = ds.getConnection();
| try {
| String query = "BEGIN terminal_tools.save_terminal_online_stat; END;";
| CallableStatement cs = c.prepareCall(query);
| try {
| cs.execute();
| } finally {
| cs.close();
| }
| } finally {
| c.close();
| }
| } catch (Exception e) {
| logger.error(e.getMessage(), e);
| }
| }
|
| }
|
The createTimer method is called just right after deployment.
The problem is, that ejbTimout method is called by more than 10 timers each second (see log bellow). But I create only ONE timer. Why? Do you have any ideas?
Log:
| 10:33:03,814 DEBUG [com.play4win.terminal.ejb.OnlineTerminalsStatBean] timer created
| 10:33:03,814 DEBUG [com.play4win.terminal.ejb.OnlineTerminalsStatBean] total timers: 13
| .
| .
| .
|
Why 13?
| 10:41:05,721 DEBUG [com.play4win.terminal.ejb.OnlineTerminalsStatBean] ejbTimout, Timer: [id=10,target=[target=jboss.j2ee:jndiName=local/OnlineTerminalsStat,service=EJB],remaining=-65206112,periode=1000,in_timeout]
| 10:41:06,721 DEBUG [com.play4win.terminal.ejb.OnlineTerminalsStatBean] ejbTimout, Timer: [id=10,target=[target=jboss.j2ee:jndiName=local/OnlineTerminalsStat,service=EJB],remaining=-65206112,periode=1000,in_timeout]
| 10:41:07,721 DEBUG [com.play4win.terminal.ejb.OnlineTerminalsStatBean] ejbTimout, Timer: [id=10,target=[target=jboss.j2ee:jndiName=local/OnlineTerminalsStat,service=EJB],remaining=-65206112,periode=1000,in_timeout]
| 10:41:08,721 DEBUG [com.play4win.terminal.ejb.OnlineTerminalsStatBean] ejbTimout, Timer: [id=10,target=[target=jboss.j2ee:jndiName=local/OnlineTerminalsStat,service=EJB],remaining=-65206112,periode=1000,in_timeout]
| 10:41:08,814 DEBUG [com.play4win.terminal.ejb.OnlineTerminalsStatBean] ejbTimout, Timer: [id=13,target=[target=jboss.j2ee:jndiName=local/OnlineTerminalsStat,service=EJB],remaining=5000,periode=5000,in_timeout]
| 10:41:09,486 DEBUG [com.play4win.terminal.ejb.OnlineTerminalsStatBean] ejbTimout, Timer: [id=2,target=[target=jboss.j2ee:jndiName=local/OnlineTerminalsStat,service=EJB],remaining=-507547,periode=5000,in_timeout]
| 10:41:09,486 DEBUG [com.play4win.terminal.ejb.OnlineTerminalsStatBean] ejbTimout, Timer: [id=3,target=[target=jboss.j2ee:jndiName=local/OnlineTerminalsStat,service=EJB],remaining=-150109,periode=5000,in_timeout]
| 10:41:09,502 DEBUG [com.play4win.terminal.ejb.OnlineTerminalsStatBean] ejbTimout, Timer: [id=5,target=[target=jboss.j2ee:jndiName=local/OnlineTerminalsStat,service=EJB],remaining=-64654002,periode=5000,in_timeout]
| 10:41:09,533 DEBUG [com.play4win.terminal.ejb.OnlineTerminalsStatBean] ejbTimout, Timer: [id=6,target=[target=jboss.j2ee:jndiName=local/OnlineTerminalsStat,service=EJB],remaining=-64518924,periode=5000,in_timeout]
| 10:41:09,564 DEBUG [com.play4win.terminal.ejb.OnlineTerminalsStatBean] ejbTimout, Timer: [id=7,target=[target=jboss.j2ee:jndiName=local/OnlineTerminalsStat,service=EJB],remaining=-64031721,periode=5000,in_timeout]
| 10:41:09,596 DEBUG [com.play4win.terminal.ejb.OnlineTerminalsStatBean] ejbTimout, Timer: [id=9,target=[target=jboss.j2ee:jndiName=local/OnlineTerminalsStat,service=EJB],remaining=-2566375,periode=5000,in_timeout]
| 10:41:09,658 DEBUG [com.play4win.terminal.ejb.OnlineTerminalsStatBean] ejbTimout, Timer: [id=12,target=[target=jboss.j2ee:jndiName=local/OnlineTerminalsStat,service=EJB],remaining=-69297,periode=5000,in_timeout]
| 10:41:09,705 DEBUG [com.play4win.terminal.ejb.OnlineTerminalsStatBean] ejbTimout, Timer: [id=11,target=[target=jboss.j2ee:jndiName=local/OnlineTerminalsStat,service=EJB],remaining=-578453,periode=5000,in_timeout]
| 10:41:09,721 DEBUG [com.play4win.terminal.ejb.OnlineTerminalsStatBean] ejbTimout, Timer: [id=10,target=[target=jboss.j2ee:jndiName=local/OnlineTerminalsStat,service=EJB],remaining=-65206112,periode=1000,in_timeout]
| 10:41:10,721 DEBUG [com.play4win.terminal.ejb.OnlineTerminalsStatBean] ejbTimout, Timer: [id=10,target=[target=jboss.j2ee:jndiName=local/OnlineTerminalsStat,service=EJB],remaining=-65206112,periode=1000,in_timeout]
| 10:41:11,721 DEBUG [com.play4win.terminal.ejb.OnlineTerminalsStatBean] ejbTimout, Timer: [id=10,target=[target=jboss.j2ee:jndiName=local/OnlineTerminalsStat,service=EJB],remaining=-65206112,periode=1000,in_timeout]
| 10:41:12,721 DEBUG [com.play4win.terminal.ejb.OnlineTerminalsStatBean] ejbTimout, Timer: [id=10,target=[target=jboss.j2ee:jndiName=local/OnlineTerminalsStat,service=EJB],remaining=-65206112,periode=1000,in_timeout]
| 10:41:13,721 DEBUG [com.play4win.terminal.ejb.OnlineTerminalsStatBean] ejbTimout, Timer: [id=10,target=[target=jboss.j2ee:jndiName=local/OnlineTerminalsStat,service=EJB],remaining=-65206112,periode=1000,in_timeout]
| 10:41:13,814 DEBUG [com.play4win.terminal.ejb.OnlineTerminalsStatBean] ejbTimout, Timer: [id=13,target=[target=jboss.j2ee:jndiName=local/OnlineTerminalsStat,service=EJB],remaining=5000,periode=5000,in_timeout]
| 10:41:14,486 DEBUG [com.play4win.terminal.ejb.OnlineTerminalsStatBean] ejbTimout, Timer: [id=2,target=[target=jboss.j2ee:jndiName=local/OnlineTerminalsStat,service=EJB],remaining=-507547,periode=5000,in_timeout]
| 10:41:14,486 DEBUG [com.play4win.terminal.ejb.OnlineTerminalsStatBean] ejbTimout, Timer: [id=3,target=[target=jboss.j2ee:jndiName=local/OnlineTerminalsStat,service=EJB],remaining=-150109,periode=5000,in_timeout]
| 10:41:14,502 DEBUG [com.play4win.terminal.ejb.OnlineTerminalsStatBean] ejbTimout, Timer: [id=5,target=[target=jboss.j2ee:jndiName=local/OnlineTerminalsStat,service=EJB],remaining=-64654002,periode=5000,in_timeout]
| 10:41:14,533 DEBUG [com.play4win.terminal.ejb.OnlineTerminalsStatBean] ejbTimout, Timer: [id=6,target=[target=jboss.j2ee:jndiName=local/OnlineTerminalsStat,service=EJB],remaining=-64518924,periode=5000,in_timeout]
| 10:41:14,564 DEBUG [com.play4win.terminal.ejb.OnlineTerminalsStatBean] ejbTimout, Timer: [id=7,target=[target=jboss.j2ee:jndiName=local/OnlineTerminalsStat,service=EJB],remaining=-64031721,periode=5000,in_timeout]
| 10:41:14,596 DEBUG [com.play4win.terminal.ejb.OnlineTerminalsStatBean] ejbTimout, Timer: [id=9,target=[target=jboss.j2ee:jndiName=local/OnlineTerminalsStat,service=EJB],remaining=-2566375,periode=5000,in_timeout]
| 10:41:14,658 DEBUG [com.play4win.terminal.ejb.OnlineTerminalsStatBean] ejbTimout, Timer: [id=12,target=[target=jboss.j2ee:jndiName=local/OnlineTerminalsStat,service=EJB],remaining=-69297,periode=5000,in_timeout]
| 10:41:14,705 DEBUG [com.play4win.terminal.ejb.OnlineTerminalsStatBean] ejbTimout, Timer: [id=11,target=[target=jboss.j2ee:jndiName=local/OnlineTerminalsStat,service=EJB],remaining=-578453,periode=5000,in_timeout]
| 10:41:14,721 DEBUG [com.play4win.terminal.ejb.OnlineTerminalsStatBean] ejbTimout, Timer: [id=10,target=[target=jboss.j2ee:jndiName=local/OnlineTerminalsStat,service=EJB],remaining=-65206112,periode=1000,in_timeout]
|
Why ejbTimeout is called so many times?
Thanks for any help.
Stan
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044603#4044603
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044603
19 years, 1 month