[JBoss JIRA] Created: (JBMESSAGING-476) Reoccuring Consumer endpoint activation failed Error
by Joel Lindheimer (JIRA)
Reoccuring Consumer endpoint activation failed Error
----------------------------------------------------
Key: JBMESSAGING-476
URL: http://jira.jboss.com/jira/browse/JBMESSAGING-476
Project: JBoss Messaging
Issue Type: Feature Request
Components: Messaging Core
Affects Versions: 1.0.0
Environment: Windows XP
Reporter: Joel Lindheimer
Assigned To: Ovidiu Feodorov
Ovidiu,
I left my server running for a while with the test consumer running. I noticed that it started printing the following ERROR every so often:
"ERROR [MessageCallbackHandler] Consumer endpoint activation failed javax.jms.JMSSecurityException: User guest is NOT authenticated"
I here is the bulk of what the test consumer does:
public class TestConsumer implements Runnable {
public void run() {
(...)
while (true) {
log.warn("whileloop+");
ut = (UserTransaction) getInitialContext().lookup("UserTransaction");
ut.begin();
conn = (QueueConnection) this.getQueueFactory().createQueueConnection();
conn.start();
session = conn.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
receiver = session.createReceiver(getQueue());
TextMessage msg = (TextMessage) receiver.receive(5000);
receiver.close();
session.close();
conn.close();
log.warn("msg: " + msg);
if(msg!=null) {
log.warn("msg.text: " +msg.getText());
}
if(ConfigHelper.getBoolean("test.jms.consumer.commit")) {
ut.commit();
} else {
ut.rollback();
}
log.warn("whileloop-");
(...)
}
}
You will need to add the following to your startup servlet init() method:
TestConsumer tc = new TestConsumer();
Thread thread = new Thread(tc);
thread.setDaemon(true);
thread.start();
Here is the ERROR/stacktrace:
14:01:50,755 ERROR [MessageCallbackHandler] Consumer endpoint activation failed javax.jms.JMSSecurityException: User guest is NOT authenticated
at org.jboss.jms.server.security.SecurityMetadataStore.authenticate(SecurityMetadataStore.java:181)
at org.jboss.jms.server.container.SecurityAspect.check(SecurityAspect.java:252)
at org.jboss.jms.server.container.SecurityAspect.checkConsumerAccess(SecurityAspect.java:174)
at org.jboss.jms.server.container.SecurityAspect.handleGetMessageNow(SecurityAspect.java:155)
at sun.reflect.GeneratedMethodAccessor212.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.aop.advice.PerInstanceAdvice.invoke(PerInstanceAdvice.java:130)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.jms.server.container.ServerLogInterceptor.invoke(ServerLogInterceptor.java:105)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aop.Advisor.dynamicInvoke(Advisor.java:723)
at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:101)
at org.jboss.jms.server.remoting.JMSServerInvocationHandler.invoke(JMSServerInvocationHandler.java:126)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:842)
at org.jboss.remoting.transport.local.LocalClientInvoker.invoke(LocalClientInvoker.java:82)
at org.jboss.remoting.Client.invoke(Client.java:610)
at org.jboss.remoting.Client.invoke(Client.java:602)
at org.jboss.jms.client.delegate.DelegateSupport.invoke(DelegateSupport.java:112)
at org.jboss.jms.client.delegate.ClientConsumerDelegate$getMessageNow_5405025797982928611.invokeNext(C
lientConsumerDelegate$getMessageNow_5405025797982928611.java)
at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:134)
at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:117)
at org.jboss.jms.client.delegate.ClientConsumerDelegate$getMessageNow_5405025797982928611.invokeNext(C
lientConsumerDelegate$getMessageNow_5405025797982928611.java)
at org.jboss.jms.client.container.ExceptionInterceptor.invoke(ExceptionInterceptor.java:69)
at org.jboss.jms.client.delegate.ClientConsumerDelegate$getMessageNow_5405025797982928611.invokeNext(C
lientConsumerDelegate$getMessageNow_5405025797982928611.java)
at org.jboss.jms.client.container.ClientLogInterceptor.invoke(ClientLogInterceptor.java:107)
at org.jboss.jms.client.delegate.ClientConsumerDelegate$getMessageNow_5405025797982928611.invokeNext(C
lientConsumerDelegate$getMessageNow_5405025797982928611.java)
at org.jboss.jms.client.delegate.ClientConsumerDelegate.getMessageNow(ClientConsumerDelegate.java)
at org.jboss.jms.client.remoting.MessageCallbackHandler$ConsumerActivationRunnable.run(MessageCallback
Handler.java:781)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:748)
at java.lang.Thread.run(Thread.java:595)
(etc.)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
19 years, 11 months
[JBoss JIRA] Commented: (JGRP-111) Improve performance of RpcDispatcher/MessageDispatcher/RequestCorrelator/MethodCall
by Bela Ban (JIRA)
[ http://jira.jboss.com/jira/browse/JGRP-111?page=comments#action_12340815 ]
Bela Ban commented on JGRP-111:
-------------------------------
$ jt RpcDispatcherSpeedTest -mode id -num 100000 -props ./fc-fast-minimalthreads.xml
-------------------------------------------------------
GMS: address is 192.168.5.2:3529
-------------------------------------------------------
-- new view: [192.168.5.2:3524|1] [192.168.5.2:3524, 192.168.5.2:3529]
-- invoking 100000 methods using mode=ID
10000
20000
30000
40000
50000
60000
70000
80000
90000
100000
time for 100000 remote calls was 40406, avg=0.40406ms/invocation, 2474 calls/sec
> Improve performance of RpcDispatcher/MessageDispatcher/RequestCorrelator/MethodCall
> -----------------------------------------------------------------------------------
>
> Key: JGRP-111
> URL: http://jira.jboss.com/jira/browse/JGRP-111
> Project: JGroups
> Issue Type: Task
> Affects Versions: 2.2.8, 2.2.9, 2.3, 2.4, 2.2.9.1, 2.2.9.2, 2.2.9 SP3 (2.2.9.3), 2.3 SP1
> Reporter: Bela Ban
> Assigned To: Bela Ban
> Fix For: 2.4
>
>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
19 years, 11 months
[JBoss JIRA] Created: (JBCACHE-709) Out of memory problem
by Sudhakar Pandey (JIRA)
Out of memory problem
---------------------
Key: JBCACHE-709
URL: http://jira.jboss.com/jira/browse/JBCACHE-709
Project: JBoss Cache
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 1.2.4SP2
Environment: Windows NT, Ecliplse IDE and Pentium 4 processor.
Reporter: Sudhakar Pandey
Assigned To: Manik Surtani
Priority: Critical
Problem:
~~~~~~~
While running the following testcase after entering 66666 records my system program is getting hang.
Following is the description of program:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I am putting some String object in TreeCache, accessing it and then removing it from the cache. I am doing this in a infinite loop.
Following is the eviction policy:
~~~~~~~~~~~~~~~~~~~~~~~
<attribute name="EvictionPolicyConfig">
<config>
<attribute name="wakeUpIntervalSeconds">72000</attribute>
<!-- Cache wide default -->
<region name="/_default_">
<attribute name="maxNodes">500</attribute>
<attribute name="timeToLiveSeconds">180</attribute>
<!-- Maximum time an object is kept in cache regardless of idle time -->
<attribute name="maxAgeSeconds">7200</attribute>
</region>
<!-- yodlee wide default -->
<region name="/com/yodlee">
<attribute name="maxNodes">500</attribute>
<attribute name="timeToLiveSeconds">180</attribute>
<!-- Maximum time an object is kept in cache regardless of idle time -->
<attribute name="maxAgeSeconds">7200</attribute>
</region>
</config>
</attribute>
*IMPORTENT*: If I reduce the 'wakeUpIntervalSeconds' then there is no leak. However, I can reduce this time coz it eats up lots of CPU.
I have attached the Tree Cache Configuration xml file also.
Program:
~~~~~~~
public void testTreeCache(){
TreeCache treeCache;
try {
treeCache = new TreeCache();
treeCache.setCacheMode(TreeCache.LOCAL);
// configure TreeCache
PropertyConfigurator config = new PropertyConfigurator();
config.configure(treeCache, "com/yodlee/core/system/services/cacheservice/TreeCache.xml");
treeCache.startService();
String identifier = "Test/MemoryLeak/";
String key = "key";
String value = "JBoss Cache is a product designed to cache frequently accessed Java objects in order to dramatically improve the performance of e-business applications. By eliminating unnecessary database access, JBoss Cache decreases network traffic and increases the scalability of applications.";
for(int i=0;;i++)
{
System.out.println("Putting key=" + (key +i));
treeCache.put(identifier, key +i, value);
System.out.println(treeCache.get(identifier, key + i));
System.out.println("Removing key=" + (key+i));
treeCache.remove(identifier, key + i);
}
//treeCache.stopService();
} catch (Exception e) {
MessageController.log(JBossCacheServiceImpl.class.getName(), 1,
ExceptionHelper.getExceptionStackTrace(e),
MessageController.FATAL);
throw new CoreException(ExceptionHelper.getExceptionStackTrace(e));
}
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
19 years, 11 months