[JNDI/Naming/Network] - Re: UnknownHostException after successful connection to port
by kahzoo
anonymous wrote : Is there any way to bind to all interfaces in 4.2 and persuade it to return an IP address instead of a hostname in the Naming object?
The easiest way to do this is to use system property 'java.rmi.server.hostname'.
For example, on windows:
SET JAVA_OPTS=-Djava.rmi.server.hostname=xx.xx.xx.xx
| run.bat -b 0.0.0.0
Please note that this will change the rmi server codebase throughout your jboss server.
If you don't like that, and want to have the change to take effect in JBoss naming service only, then do the following:
1) open your server's 'conf/jboss-service.xml' file.
2) locate the 'jboss:service=Naming' mbean.
3) set the following 2 attributes.
<attribute name="RmiBindAddress">xx.xx.xx.xx</attribute>
| <attribute name="ClientSocketFactory">org.jboss.net.sockets.DefaultClientSocketFactory</attribute>
|
4) restart your jboss server with -b 0.0.0.0 option
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144481#4144481
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144481
18 years, 3 months
[JBoss Messaging] - Re: Clustered server preference
by chip_schoch
Clearly I have been having some serious misunderstandings on how this works.
1. My clients use the JCA adapter because we develop on windows machines that can run a windows only conversion library, so the "ConversionJMSProvider" is defined to connect to localhost on our machines and to connect to a cluster on the deployment environment. Our deployment environment has only the conversion service running on a windows JBoss, which connects to a cluster of linux JBoss AS. I thought this was the way to do that.
2. anonymous wrote : java.naming.provider.url=jnp://devapp2.qa.cin.int:1100,jnp://devapp1.qa.cin.int:1100
I was under the (mis) understanding that this was how you specified the servers in the cluster. We were initially having issues with discovery. I think that it was related to firewall settings or something.
3. I (mistakenly, apparently) thought that a producer that uses the ClusteredConnectionFactory would round robin the messages as they were posted. We have a service that runs as a singleton that produces messages and we want them to be round-robined to the consumers running on each node. It seemed reasonable to me.
After running a series of tests I see that virtually all of my assumptions were ass-backward. Time to rethink my strategy.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144479#4144479
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144479
18 years, 3 months
[JBoss Cache: Core Edition] - Data Gravitation
by FredrikJ
Hi.
We have been experiencing an issue in our system when enabling buddy replication. The issue manifests itself in way that replication seems to be completely missing. We can turn the issue on and off by enabling/disabling buddy replication so I have focused on isolating the problem in a stand-alone test.
In my test scenario I am now able to create something I think is a bug. I am using two caches with buddy replication enabled and force data gravitation between them. I then fail the secondary cache and examine if the data was recoverable on the primary cache. This works like a charm. However, when I do this a second time around, i.e. start up a new cache again, the same scenario fails.
The second time, the objects gravitated from the primary cache are not removed as they are the first time around and when we inspect the cache for recovered data after failing the second secondary cache, we get the wrong data. The primary cache has the correct data under its _buddy_backup node but since it prefers its own data, it will read the 'wrong' version.
This is pretty complex to explain, so I have posted the complete test code here: http://www.cubeia.com/misc/buddyrep/
I've tried to add comments to the code to be as explanatory as possible. The test was written for 2.1.0.GA.
I do have an understanding of data affinity and what the concept implies, however, I believe that the test do not break or abuse data affinity but rather tests fail-over scenarios when using buddy replication. Finally, why should the behavior change because the cache had a member in the past?
I hope you can run the test and try it out. Just ask away if the code not making any sense to you =)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144478#4144478
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144478
18 years, 3 months
[JBossWS] - Problem consuming .net webservice with jbossws-3.0.1-native-
by claudio_br
Hi,
I created the stubs classes of .net webservice using ant task:
org.jboss.wsf.spi.tools.ant.WSConsumeTask
But when I invoke the .net webservice I got:
javax.xml.ws.WebServiceException: java.io.IOException: Could not transmit message
| Exception in thread "main" javax.xml.ws.WebServiceException: java.io.IOException: Could not transmit message
| at org.jboss.ws.core.jaxws.client.ClientImpl.handleRemoteException(ClientImpl.java:404)
| at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:314)
| at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:172)
| at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:152)
| at $Proxy15.getToken(Unknown Source)
| at teste.Teste.getXY(Teste.java:26)
| at teste.Teste.main(Teste.java:73)
| Caused by: java.io.IOException: Could not transmit message
| at org.jboss.ws.core.client.HTTPRemotingConnection.invoke(HTTPRemotingConnection.java:255)
| at org.jboss.ws.core.client.SOAPProtocolConnectionHTTP.invoke(SOAPProtocolConnectionHTTP.java:73)
| at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:339)
| at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:302)
| ... 5 more
| Caused by: org.jboss.remoting.CannotConnectException: Can not connect http client invoker.
| at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:333)
| at org.jboss.remoting.transport.http.HTTPClientInvoker.transport(HTTPClientInvoker.java:135)
| at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
| at org.jboss.remoting.Client.invoke(Client.java:1634)
| at org.jboss.remoting.Client.invoke(Client.java:548)
| at org.jboss.ws.core.client.HTTPRemotingConnection.invoke(HTTPRemotingConnection.java:233)
| ... 8 more
| Caused by: org.jboss.ws.WSException: Invalid HTTP server response [501] - Not Implemented
| at org.jboss.ws.core.soap.SOAPMessageUnMarshallerHTTP.read(SOAPMessageUnMarshallerHTTP.java:77)
| at org.jboss.remoting.transport.http.HTTPClientInvoker.readResponse(HTTPClientInvoker.java:473)
| at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:305)
| ... 13 more
With the release jbossws 2.0.0.GA the calls are made successfully.
Please, help me.
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144471#4144471
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144471
18 years, 3 months
[Management, JMX/JBoss] - JMX on JBoss Problem
by alexanderb
Hello All
I have couple problem with invocation method via JMX in JBoss. Iâm trying to access from JBoss application to another (other JVM) application which has JMX interface
| <MBEAN_PROXY> MBEAN_PROXY getProxy(Class <MBEAN_PROXY> clazz) throws MalformedObjectNameException, NullPointerException, IOException{
| JMXConnector c = (JMXConnector) JMXConnectorFactory.connect(new JMXServiceURL(url));
| MBEAN_PROXY result = MBeanServerInvocationHandler.newProxyInstance(c.getMBeanServerConnection(), new ObjectName(beanId), clazz,false);
| return result;
| }
|
this code works fine on separate JVM but on jboss this code throws Exception
| 2008-04-16 15:48:44,667 ERROR [STDERR] java.lang.reflect.UndeclaredThrowableException
| 2008-04-16 15:48:44,667 ERROR [STDERR] at $Proxy129.enumeratePlugins(Unknown Source)
| 2008-04-16 15:48:44,667 ERROR [STDERR] at com.synapsense.registrar.RegistrarSvcImpl.registerComponent(RegistrarSvcImpl.java:76)
| 2008-04-16 15:48:44,667 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 2008-04-16 15:48:44,667 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| 2008-04-16 15:48:44,667 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| 2008-04-16 15:48:44,667 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
| 2008-04-16 15:48:44,667 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
| 2008-04-16 15:48:44,667 ERROR [STDERR] at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
| 2008-04-16 15:48:44,667 ERROR [STDERR] at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
| 2008-04-16 15:48:44,667 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 2008-04-16 15:48:44,667 ERROR [STDERR] at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:95)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.aspects.security.RoleBasedAuthorizationInterceptor.invoke(RoleBasedAuthorizationInterceptor.java:166)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.ejb3.security.RoleBasedAuthorizationInterceptor.invoke(RoleBasedAuthorizationInterceptor.java:115)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:110)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.ejb3.service.ServiceContainer.localInvoke(ServiceContainer.java:329)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.ejb3.service.ServiceContainer.localInvoke(ServiceContainer.java:294)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.ejb3.service.ServiceMBeanDelegate.invoke(ServiceMBeanDelegate.java:215)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.jmx.connector.invoker.InvokerAdaptorService.invoke(InvokerAdaptorService.java:266)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.jmx.connector.invoker.SerializableInterceptor.invoke(SerializableInterceptor.java:74)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.invocation.jrmp.server.JRMPProxyFactory.invoke(JRMPProxyFactory.java:179)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:818)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:419)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at sun.rmi.transport.Transport$1.run(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at java.security.AccessController.doPrivileged(Native Method)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at sun.rmi.transport.Transport.serviceCall(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at java.lang.Thread.run(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] Caused by: javax.management.InstanceNotFoundException: com.synapsense.plugin.manager.jmx:type=DeviceManager
| 2008-04-16 15:48:44,683 ERROR [STDERR] at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getClassLoaderFor(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at com.sun.jmx.mbeanserver.JmxMBeanServer.getClassLoaderFor(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at javax.management.remote.rmi.RMIConnectionImpl$5.run(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at java.security.AccessController.doPrivileged(Native Method)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at javax.management.remote.rmi.RMIConnectionImpl.getClassLoaderFor(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at javax.management.remote.rmi.RMIConnectionImpl.invoke(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at sun.rmi.transport.Transport$1.run(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at java.security.AccessController.doPrivileged(Native Method)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at sun.rmi.transport.Transport.serviceCall(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at java.lang.Thread.run(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at sun.rmi.server.UnicastRef.invoke(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at com.sun.jmx.remote.internal.PRef.invoke(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at javax.management.remote.rmi.RMIConnectionImpl_Stub.invoke(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at javax.management.remote.rmi.RMIConnector$RemoteMBeanServerConnection.invoke(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at javax.management.MBeanServerInvocationHandler.invoke(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] ... 78 more
|
The question is "Is it possible to fix this problem?"
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144461#4144461
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144461
18 years, 3 months
[EJB 3.0] - TimerService problem
by MasterOfBeans
Hello,
I am using JBOSS 4.2.2 GA and want to use the TimerService
Here is my example code:
|
| @Stateless
| @Local(ProductionOrderService.class)
| public class ProductionOrderServiceBean implements ProductionOrderService
| private @Resource TimerService timerService;
| private @EJB FileGenerationService fileGenerationService;
| ...
|
| void doSomething()
| {
| ...
| timerService.createTimer(new Date(System.currentTimeMillis() + FILE_GEN_DELAY_VALUE), prodOrder);
| ...
| }
|
| @Timeout
| @PermitAll
| public void fileGenerationTimeOut(Timer timer)
| {
| ProductionOrderCreateDTO prodOrder = (ProductionOrderCreateDTO) timer.getInfo();
| fileGenerationService.generateProductionOrderFile(prodOrder);
| }
The timer event is fired after the FILE_GEN_DELAY_VALUE. The problem is that I always get a javax.ejb.EJBAccessException: Authentication failure.
And YES, I added:
<module-option name = "unauthenticatedIdentity">Homer Simpson</module-option>
to application login module!
BTW: I even tried to add "@PermitAll" to the generateProductionOrderFile method. But this didn't solved the problem either!
I would appreciate your help!
Thank you in advance!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144457#4144457
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144457
18 years, 3 months