Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 702400 Details for
Bug 915333
Java client raises javax.jms.JMSException instead of InvalidDestinationException in BasicMessageProducer.send() method
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Trivial patch
bz915333.patch (text/plain), 2.21 KB, created by
Pavel Moravec
on 2013-02-25 15:45:48 UTC
(
hide
)
Description:
Trivial patch
Filename:
MIME Type:
Creator:
Pavel Moravec
Created:
2013-02-25 15:45:48 UTC
Size:
2.21 KB
patch
obsolete
>diff -rup _qpid-0.18-orig/java/client/src/main/java/org/apache/qpid/client/BasicMessageProducer.java _qpid-0.18-new/java/client/src/main/java/org/apache/qpid/client/BasicMessageProducer.java >--- _qpid-0.18-orig/java/client/src/main/java/org/apache/qpid/client/BasicMessageProducer.java 2012-03-08 21:09:40.000000000 +0100 >+++ _qpid-0.18-new/java/client/src/main/java/org/apache/qpid/client/BasicMessageProducer.java 2013-02-25 15:39:48.296714025 +0100 >@@ -488,7 +488,7 @@ public abstract class BasicMessageProduc > * @throws JMSException > */ > protected void sendImpl(AMQDestination destination, Message origMessage, int deliveryMode, int priority, long timeToLive, >- boolean mandatory, boolean immediate) throws JMSException >+ boolean mandatory, boolean immediate) throws JMSException, InvalidDestinationException > { > checkTemporaryDestination(destination); > origMessage.setJMSDestination(destination); >@@ -538,7 +538,7 @@ public abstract class BasicMessageProduc > UUID messageId, int deliveryMode, int priority, long timeToLive, boolean mandatory, > boolean immediate) throws JMSException; > >- private void checkTemporaryDestination(AMQDestination destination) throws JMSException >+ private void checkTemporaryDestination(AMQDestination destination) throws InvalidDestinationException > { > if (destination instanceof TemporaryDestination) > { >@@ -547,13 +547,13 @@ public abstract class BasicMessageProduc > if (tempDest.getSession().isClosed()) > { > _logger.debug("session is closed"); >- throw new JMSException("Session for temporary destination has been closed"); >+ throw new InvalidDestinationException("Session for temporary destination has been closed"); > } > > if (tempDest.isDeleted()) > { > _logger.debug("destination is deleted"); >- throw new JMSException("Cannot send to a deleted temporary destination"); >+ throw new InvalidDestinationException("Cannot send to a deleted temporary destination"); > } > } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 915333
:
702368
| 702400 |
781984