Return-Path: X-Original-To: apmail-axis-java-dev-archive@www.apache.org Delivered-To: apmail-axis-java-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EF6ABC946 for ; Thu, 10 May 2012 15:31:10 +0000 (UTC) Received: (qmail 4597 invoked by uid 500); 10 May 2012 15:31:09 -0000 Delivered-To: apmail-axis-java-dev-archive@axis.apache.org Received: (qmail 4460 invoked by uid 500); 10 May 2012 15:31:09 -0000 Mailing-List: contact java-dev-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@axis.apache.org Delivered-To: mailing list java-dev@axis.apache.org Received: (qmail 4326 invoked by uid 99); 10 May 2012 15:31:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 May 2012 15:31:09 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 May 2012 15:31:08 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 2B8CD14DC6 for ; Thu, 10 May 2012 15:30:48 +0000 (UTC) Date: Thu, 10 May 2012 15:30:48 +0000 (UTC) From: "Anjana Fernando (JIRA)" To: java-dev@axis.apache.org Message-ID: <1016064361.49748.1336663848179.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <974381320.49720.1336663488543.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (AXIS2-5318) "consumer" and "producer" values are not supported in transport.jms.CacheLevel property MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AXIS2-5318?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Anjana Fernando updated AXIS2-5318: ----------------------------------- Attachment: jms_cache_level_patch.txt Hi, I'm attaching here the patch to fix the above mentioned issue. For reference, below is the actual stacktrace you get of the error, when setting the cache level as "producer", you get a rather similar one for "consumer" as well. [2012-05-10 17:04:02,148] ERROR - JMSListener Unexpected error when configuring service FileToJMSProxy for the JMS transport. It will be disabled for this transport and marked as faulty. org.apache.axis2.transport.jms.AxisJMSException: Invalid cache level : producer at org.apache.axis2.transport.jms.ServiceTaskManagerFactory.getCacheLevel(ServiceTaskManagerFactory.java:313) at org.apache.axis2.transport.jms.ServiceTaskManagerFactory.createTaskManagerForService(ServiceTaskManagerFactory.java:85) at org.apache.axis2.transport.jms.JMSEndpoint.loadConfiguration(JMSEndpoint.java:249) at org.apache.axis2.transport.base.AbstractTransportListenerEx.startListeningForService(AbstractTransportListenerEx.java:153) at org.apache.axis2.transport.base.AbstractTransportListener.internalStartListeningForService(AbstractTransportListener.java:213) at org.apache.axis2.transport.base.AbstractTransportListener$2.serviceAdded(AbstractTransportListener.java:126) at org.apache.axis2.transport.base.tracker.AxisServiceTracker.serviceAdded(AxisServiceTracker.java:212) at org.apache.axis2.transport.base.tracker.AxisServiceTracker.start(AxisServiceTracker.java:188) at org.apache.axis2.transport.base.AbstractTransportListener.start(AbstractTransportListener.java:178) at org.apache.axis2.transport.base.AbstractTransportListenerEx.start(AbstractTransportListenerEx.java:83) at org.apache.axis2.engine.ListenerManager.start(ListenerManager.java:168) at org.apache.axis2.engine.ListenerManager.startSystem(ListenerManager.java:186) > "consumer" and "producer" values are not supported in transport.jms.CacheLevel property > --------------------------------------------------------------------------------------- > > Key: AXIS2-5318 > URL: https://issues.apache.org/jira/browse/AXIS2-5318 > Project: Axis2 > Issue Type: Bug > Components: transports > Affects Versions: 1.1 > Reporter: Amila Maharachchi > Priority: Blocker > Attachments: jms_cache_level_patch.txt > > > When trying to set the transport.jms.CacheLevel property as "consumer" or "producer" it throws exception saying "Invalid cache level"....... This property is needed to get the ActiveMQ redelivery mechanism to work because in ActiveMQ, redeliverPolicy is dictated by the CONSUMER. Further looking in to the code revealed > 1. CONSUMER is set but cannot be digest > 2. PRODUCER is not set -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org For additional commands, e-mail: java-dev-help@axis.apache.org