users@glassfish.java.net

Constant error messages in Glassfish using ConnectionFactories

From: <glassfish_at_javadesktop.org>
Date: Thu, 20 Mar 2008 13:19:15 PST

All,

   Using Glassfish v2 58g and the latest glassfish-v2-ur1-b09d-patch-20080310 I have been having an ongoing problem with error messages in my server.log file. These messages seem to center around how the Connection Pool generates, in my case, 8 connections to the Topic whenever it needs to refresh the pool.

What I have done so far:
1: Removed the guest account from imq
    This caused all creation of Topic connections to fail. I set up a new user and set the username/password properties of the factory properly. This results in the same error being generated as with guest/guest.

2: Changed the configuration of the Java Message Service from EMBEDDED to LOCAL and added back the guest account (due to startup issues), results in even more spam into the log

3: The error messages repeat every 300 seconds. If you change the Connection Factory to have minimum number of idle seconds to 1 results in the connection string being spammed constantly.


The only work around I have is to set the idle timeout to something very large and the number of connections to something very small to minimize the impact of this. But really, I'd like to not have all this spam in my server log. Is there any way to disable all this garbage?


Thanks in advance!

Doku



========== BEGIN INITIAL OUTPUT :
parsing WSDL...
generating code...
compiling code...
Invoking wsimport with http://localhost:8080/NewWebServiceService/NewWebService?WSDL
wsimport successful
Starting up!
Looking up context...
Looking Up Connection Factory...
Using MQ RA for Broker lifecycle control
JMS Service Connection URL is :mq://itcd-406029.its.local:7676/
MQJMSRA_RA1101: SJSMQ JMS Resource Adapter starting...
MQJMSRA_EB1101: EMBEDDED broker started with code =0
MQJMSRA_RA1101: SJSMQ JMSRA Started:DIRECT
MQJMSRA_MF1101: setPassword:NOT setting default value
MQJMSRA_MF1101: setAddressList:NOT setting default value=localhost
MQJMSRA_MF1101: setUserName:NOT setting default value=guest
Looking up Topic...
Creating connection...
MQJMSRA_MC2001: createConnection API used w/ username, password for Container Auth
MQJMSRA_MC2001: createConnection API used w/ username, password for Container Auth
MQJMSRA_MC2001: createConnection API used w/ username, password for Container Auth
MQJMSRA_MC2001: createConnection API used w/ username, password for Container Auth
MQJMSRA_MC2001: createConnection API used w/ username, password for Container Auth
MQJMSRA_MC2001: createConnection API used w/ username, password for Container Auth
MQJMSRA_MC2001: createConnection API used w/ username, password for Container Auth
MQJMSRA_MC2001: createConnection API used w/ username, password for Container Auth
Starting connection...
Starting session...
Creating producer...
Creating message...
Sending message: 8b48995e-af48-4ffb-a6dd-045e53ac037f
Disconnecting everything...
Done!


=========== BEGIN SUBSEQUENT OUTPUT:
Starting up!
Looking up context...
Looking Up Connection Factory...
Looking up Topic...
Creating connection...
Starting connection...
Starting session...
Creating producer...
Creating message...
Sending message: 9f77c363-dff3-4729-ac1d-8c8b171239b1
Disconnecting everything...
Done!


=========> LOCAL with guest account
Starting up!
Looking up context...
Looking Up Connection Factory...
MQJMSRA_MF1101: setAddressList:NOT setting default value=localhost
Looking up Topic...
Creating connection...
MQJMSRA_MC2001: createConnection API used w/ username, password for Container Auth
MQJMSRA_MC1101: constructor:Created mcId=1:xacId=4369926286216880384:Using xacf config={imqOverrideJMSPriority=false, imqConsumerFlowLimit=1000, imqOverrideJMSExpiration=false, imqAddressListIterations=3, imqLoadMaxToServerSession=true, imqConnectionType=TCP, imqPingInterval=30, imqSetJMSXUserID=false, imqConfiguredClientID=, imqSSLProviderClassname=com.sun.net.ssl.internal.ssl.Provider, imqJMSDeliveryMode=PERSISTENT, imqConnectionFlowLimit=1000, imqConnectionURL=http://localhost/imq/tunnel, imqBrokerServiceName=, imqJMSPriority=4, imqBrokerHostName=localhost, imqJMSExpiration=0, imqAckOnProduce=, imqEnableSharedClientID=false, imqAckTimeout=0, imqAckOnAcknowledge=, imqConsumerFlowThreshold=50, imqDefaultPassword=admin, imqQueueBrowserMaxMessagesPerRetrieve=1000, imqDefaultUsername=admin, imqReconnectEnabled=true, imqConnectionFlowCount=100, imqAddressListBehavior=RANDOM, imqReconnectAttempts=3, imqSetJMSXAppID=false, imqConnectionHandler=com.sun.messaging.jmq.jmsclient.protocol.tcp.TCPStreamHandler, imqSetJMSXRcvTimestamp=false, imqBrokerServicePort=0, imqDisableSetClientID=false, imqSetJMSXConsumerTXID=false, imqOverrideJMSDeliveryMode=false, imqBrokerHostPort=7676, imqQueueBrowserRetrieveTimeout=60000, imqSetJMSXProducerTXID=false, imqSSLIsHostTrusted=false, imqConnectionFlowLimitEnabled=false, imqReconnectInterval=5000, imqAddressList=localhost:7676, imqOverrideJMSHeadersToTemporaryDestinations=false}
MQJMSRA_MC2001: createConnection API used w/ username, password for Container Auth
MQJMSRA_MC1101: constructor:Created mcId=2:xacId=4369926286216892416:Using xacf config={imqOverrideJMSPriority=false, imqConsumerFlowLimit=1000, imqOverrideJMSExpiration=false, imqAddressListIterations=3, imqLoadMaxToServerSession=true, imqConnectionType=TCP, imqPingInterval=30, imqSetJMSXUserID=false, imqConfiguredClientID=, imqSSLProviderClassname=com.sun.net.ssl.internal.ssl.Provider, imqJMSDeliveryMode=PERSISTENT, imqConnectionFlowLimit=1000, imqConnectionURL=http://localhost/imq/tunnel, imqBrokerServiceName=, imqJMSPriority=4, imqBrokerHostName=localhost, imqJMSExpiration=0, imqAckOnProduce=, imqEnableSharedClientID=false, imqAckTimeout=0, imqAckOnAcknowledge=, imqConsumerFlowThreshold=50, imqDefaultPassword=admin, imqQueueBrowserMaxMessagesPerRetrieve=1000, imqDefaultUsername=admin, imqReconnectEnabled=true, imqConnectionFlowCount=100, imqAddressListBehavior=RANDOM, imqReconnectAttempts=3, imqSetJMSXAppID=false, imqConnectionHandler=com.sun.messaging.jmq.jmsclient.protocol.tcp.TCPStreamHandler, imqSetJMSXRcvTimestamp=false, imqBrokerServicePort=0, imqDisableSetClientID=false, imqSetJMSXConsumerTXID=false, imqOverrideJMSDeliveryMode=false, imqBrokerHostPort=7676, imqQueueBrowserRetrieveTimeout=60000, imqSetJMSXProducerTXID=false, imqSSLIsHostTrusted=false, imqConnectionFlowLimitEnabled=false, imqReconnectInterval=5000, imqAddressList=localhost:7676, imqOverrideJMSHeadersToTemporaryDestinations=false}
MQJMSRA_MC2001: createConnection API used w/ username, password for Container Auth
MQJMSRA_MC1101: constructor:Created mcId=3:xacId=4369926286216896512:Using xacf config={imqOverrideJMSPriority=false, imqConsumerFlowLimit=1000, imqOverrideJMSExpiration=false, imqAddressListIterations=3, imqLoadMaxToServerSession=true, imqConnectionType=TCP, imqPingInterval=30, imqSetJMSXUserID=false, imqConfiguredClientID=, imqSSLProviderClassname=com.sun.net.ssl.internal.ssl.Provider, imqJMSDeliveryMode=PERSISTENT, imqConnectionFlowLimit=1000, imqConnectionURL=http://localhost/imq/tunnel, imqBrokerServiceName=, imqJMSPriority=4, imqBrokerHostName=localhost, imqJMSExpiration=0, imqAckOnProduce=, imqEnableSharedClientID=false, imqAckTimeout=0, imqAckOnAcknowledge=, imqConsumerFlowThreshold=50, imqDefaultPassword=admin, imqQueueBrowserMaxMessagesPerRetrieve=1000, imqDefaultUsername=admin, imqReconnectEnabled=true, imqConnectionFlowCount=100, imqAddressListBehavior=RANDOM, imqReconnectAttempts=3, imqSetJMSXAppID=false, imqConnectionHandler=com.sun.messaging.jmq.jmsclient.protocol.tcp.TCPStreamHandler, imqSetJMSXRcvTimestamp=false, imqBrokerServicePort=0, imqDisableSetClientID=false, imqSetJMSXConsumerTXID=false, imqOverrideJMSDeliveryMode=false, imqBrokerHostPort=7676, imqQueueBrowserRetrieveTimeout=60000, imqSetJMSXProducerTXID=false, imqSSLIsHostTrusted=false, imqConnectionFlowLimitEnabled=false, imqReconnectInterval=5000, imqAddressList=localhost:7676, imqOverrideJMSHeadersToTemporaryDestinations=false}
MQJMSRA_MC2001: createConnection API used w/ username, password for Container Auth
MQJMSRA_MC1101: constructor:Created mcId=4:xacId=4369926286216900352:Using xacf config={imqOverrideJMSPriority=false, imqConsumerFlowLimit=1000, imqOverrideJMSExpiration=false, imqAddressListIterations=3, imqLoadMaxToServerSession=true, imqConnectionType=TCP, imqPingInterval=30, imqSetJMSXUserID=false, imqConfiguredClientID=, imqSSLProviderClassname=com.sun.net.ssl.internal.ssl.Provider, imqJMSDeliveryMode=PERSISTENT, imqConnectionFlowLimit=1000, imqConnectionURL=http://localhost/imq/tunnel, imqBrokerServiceName=, imqJMSPriority=4, imqBrokerHostName=localhost, imqJMSExpiration=0, imqAckOnProduce=, imqEnableSharedClientID=false, imqAckTimeout=0, imqAckOnAcknowledge=, imqConsumerFlowThreshold=50, imqDefaultPassword=admin, imqQueueBrowserMaxMessagesPerRetrieve=1000, imqDefaultUsername=admin, imqReconnectEnabled=true, imqConnectionFlowCount=100, imqAddressListBehavior=RANDOM, imqReconnectAttempts=3, imqSetJMSXAppID=false, imqConnectionHandler=com.sun.messaging.jmq.jmsclient.protocol.tcp.TCPStreamHandler, imqSetJMSXRcvTimestamp=false, imqBrokerServicePort=0, imqDisableSetClientID=false, imqSetJMSXConsumerTXID=false, imqOverrideJMSDeliveryMode=false, imqBrokerHostPort=7676, imqQueueBrowserRetrieveTimeout=60000, imqSetJMSXProducerTXID=false, imqSSLIsHostTrusted=false, imqConnectionFlowLimitEnabled=false, imqReconnectInterval=5000, imqAddressList=localhost:7676, imqOverrideJMSHeadersToTemporaryDestinations=false}
MQJMSRA_MC2001: createConnection API used w/ username, password for Container Auth
MQJMSRA_MC1101: constructor:Created mcId=5:xacId=4369926286216904448:Using xacf config={imqOverrideJMSPriority=false, imqConsumerFlowLimit=1000, imqOverrideJMSExpiration=false, imqAddressListIterations=3, imqLoadMaxToServerSession=true, imqConnectionType=TCP, imqPingInterval=30, imqSetJMSXUserID=false, imqConfiguredClientID=, imqSSLProviderClassname=com.sun.net.ssl.internal.ssl.Provider, imqJMSDeliveryMode=PERSISTENT, imqConnectionFlowLimit=1000, imqConnectionURL=http://localhost/imq/tunnel, imqBrokerServiceName=, imqJMSPriority=4, imqBrokerHostName=localhost, imqJMSExpiration=0, imqAckOnProduce=, imqEnableSharedClientID=false, imqAckTimeout=0, imqAckOnAcknowledge=, imqConsumerFlowThreshold=50, imqDefaultPassword=admin, imqQueueBrowserMaxMessagesPerRetrieve=1000, imqDefaultUsername=admin, imqReconnectEnabled=true, imqConnectionFlowCount=100, imqAddressListBehavior=RANDOM, imqReconnectAttempts=3, imqSetJMSXAppID=false, imqConnectionHandler=com.sun.messaging.jmq.jmsclient.protocol.tcp.TCPStreamHandler, imqSetJMSXRcvTimestamp=false, imqBrokerServicePort=0, imqDisableSetClientID=false, imqSetJMSXConsumerTXID=false, imqOverrideJMSDeliveryMode=false, imqBrokerHostPort=7676, imqQueueBrowserRetrieveTimeout=60000, imqSetJMSXProducerTXID=false, imqSSLIsHostTrusted=false, imqConnectionFlowLimitEnabled=false, imqReconnectInterval=5000, imqAddressList=localhost:7676, imqOverrideJMSHeadersToTemporaryDestinations=false}
MQJMSRA_MC2001: createConnection API used w/ username, password for Container Auth
MQJMSRA_MC1101: constructor:Created mcId=6:xacId=4369926286216908544:Using xacf config={imqOverrideJMSPriority=false, imqConsumerFlowLimit=1000, imqOverrideJMSExpiration=false, imqAddressListIterations=3, imqLoadMaxToServerSession=true, imqConnectionType=TCP, imqPingInterval=30, imqSetJMSXUserID=false, imqConfiguredClientID=, imqSSLProviderClassname=com.sun.net.ssl.internal.ssl.Provider, imqJMSDeliveryMode=PERSISTENT, imqConnectionFlowLimit=1000, imqConnectionURL=http://localhost/imq/tunnel, imqBrokerServiceName=, imqJMSPriority=4, imqBrokerHostName=localhost, imqJMSExpiration=0, imqAckOnProduce=, imqEnableSharedClientID=false, imqAckTimeout=0, imqAckOnAcknowledge=, imqConsumerFlowThreshold=50, imqDefaultPassword=admin, imqQueueBrowserMaxMessagesPerRetrieve=1000, imqDefaultUsername=admin, imqReconnectEnabled=true, imqConnectionFlowCount=100, imqAddressListBehavior=RANDOM, imqReconnectAttempts=3, imqSetJMSXAppID=false, imqConnectionHandler=com.sun.messaging.jmq.jmsclient.protocol.tcp.TCPStreamHandler, imqSetJMSXRcvTimestamp=false, imqBrokerServicePort=0, imqDisableSetClientID=false, imqSetJMSXConsumerTXID=false, imqOverrideJMSDeliveryMode=false, imqBrokerHostPort=7676, imqQueueBrowserRetrieveTimeout=60000, imqSetJMSXProducerTXID=false, imqSSLIsHostTrusted=false, imqConnectionFlowLimitEnabled=false, imqReconnectInterval=5000, imqAddressList=localhost:7676, imqOverrideJMSHeadersToTemporaryDestinations=false}
MQJMSRA_MC2001: createConnection API used w/ username, password for Container Auth
MQJMSRA_MC1101: constructor:Created mcId=7:xacId=4369926286216912385:Using xacf config={imqOverrideJMSPriority=false, imqConsumerFlowLimit=1000, imqOverrideJMSExpiration=false, imqAddressListIterations=3, imqLoadMaxToServerSession=true, imqConnectionType=TCP, imqPingInterval=30, imqSetJMSXUserID=false, imqConfiguredClientID=, imqSSLProviderClassname=com.sun.net.ssl.internal.ssl.Provider, imqJMSDeliveryMode=PERSISTENT, imqConnectionFlowLimit=1000, imqConnectionURL=http://localhost/imq/tunnel, imqBrokerServiceName=, imqJMSPriority=4, imqBrokerHostName=localhost, imqJMSExpiration=0, imqAckOnProduce=, imqEnableSharedClientID=false, imqAckTimeout=0, imqAckOnAcknowledge=, imqConsumerFlowThreshold=50, imqDefaultPassword=admin, imqQueueBrowserMaxMessagesPerRetrieve=1000, imqDefaultUsername=admin, imqReconnectEnabled=true, imqConnectionFlowCount=100, imqAddressListBehavior=RANDOM, imqReconnectAttempts=3, imqSetJMSXAppID=false, imqConnectionHandler=com.sun.messaging.jmq.jmsclient.protocol.tcp.TCPStreamHandler, imqSetJMSXRcvTimestamp=false, imqBrokerServicePort=0, imqDisableSetClientID=false, imqSetJMSXConsumerTXID=false, imqOverrideJMSDeliveryMode=false, imqBrokerHostPort=7676, imqQueueBrowserRetrieveTimeout=60000, imqSetJMSXProducerTXID=false, imqSSLIsHostTrusted=false, imqConnectionFlowLimitEnabled=false, imqReconnectInterval=5000, imqAddressList=localhost:7676, imqOverrideJMSHeadersToTemporaryDestinations=false}
MQJMSRA_MC2001: createConnection API used w/ username, password for Container Auth
MQJMSRA_MC1101: constructor:Created mcId=8:xacId=4369926286216916481:Using xacf config={imqOverrideJMSPriority=false, imqConsumerFlowLimit=1000, imqOverrideJMSExpiration=false, imqAddressListIterations=3, imqLoadMaxToServerSession=true, imqConnectionType=TCP, imqPingInterval=30, imqSetJMSXUserID=false, imqConfiguredClientID=, imqSSLProviderClassname=com.sun.net.ssl.internal.ssl.Provider, imqJMSDeliveryMode=PERSISTENT, imqConnectionFlowLimit=1000, imqConnectionURL=http://localhost/imq/tunnel, imqBrokerServiceName=, imqJMSPriority=4, imqBrokerHostName=localhost, imqJMSExpiration=0, imqAckOnProduce=, imqEnableSharedClientID=false, imqAckTimeout=0, imqAckOnAcknowledge=, imqConsumerFlowThreshold=50, imqDefaultPassword=admin, imqQueueBrowserMaxMessagesPerRetrieve=1000, imqDefaultUsername=admin, imqReconnectEnabled=true, imqConnectionFlowCount=100, imqAddressListBehavior=RANDOM, imqReconnectAttempts=3, imqSetJMSXAppID=false, imqConnectionHandler=com.sun.messaging.jmq.jmsclient.protocol.tcp.TCPStreamHandler, imqSetJMSXRcvTimestamp=false, imqBrokerServicePort=0, imqDisableSetClientID=false, imqSetJMSXConsumerTXID=false, imqOverrideJMSDeliveryMode=false, imqBrokerHostPort=7676, imqQueueBrowserRetrieveTimeout=60000, imqSetJMSXProducerTXID=false, imqSSLIsHostTrusted=false, imqConnectionFlowLimitEnabled=false, imqReconnectInterval=5000, imqAddressList=localhost:7676, imqOverrideJMSHeadersToTemporaryDestinations=false}
Starting connection...
Starting session...
Creating producer...
Creating message...
Sending message: e0986358-3d33-42c2-af40-f80f78e28e85
Disconnecting everything...
Done!


====== > Code of example class that generates this:
@Stateless
public class JMSLogSpamBean implements JMSLogSpamLocal {
    
    public void GenerateMessage() {
        System.out.println("Starting up!");
        try {
            System.out.println("Looking up context...");
            InitialContext ctx = new InitialContext();

            System.out.println("Looking Up Connection Factory...");
            ConnectionFactory conFactory = (ConnectionFactory) ctx.lookup("sandbox/TopicConnectionFactory");

            System.out.println("Looking up Topic...");
            Topic msgTopic = (Topic) ctx.lookup("sandbox/Topic");

            System.out.println("Creating connection...");
            Connection connection = conFactory.createConnection();

            System.out.println("Starting connection...");
            connection.start();

            System.out.println("Starting session...");
            Session ses = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);

            System.out.println("Creating producer...");
            MessageProducer producer = ses.createProducer(msgTopic);

            System.out.println("Creating message...");
            TextMessage mess = ses.createTextMessage();
            String uid = java.util.UUID.randomUUID().toString();
            mess.setStringProperty("ID", uid);
            
            // Step 5: Send Message and close connection
            System.out.println("Sending message: " + uid);
            producer.send(mess);

            System.out.println("Disconnecting everything...");
            producer.close();
            ses.close();
            connection.close();
            ctx.close();
            System.out.println("Done!");
        } catch (Exception ex) {
            Logger.getLogger(JMSLogSpamBean.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
}
[Message sent by forum member 'dokujaryu' (dokujaryu)]

http://forums.java.net/jive/thread.jspa?messageID=265090