[
https://issues.apache.org/jira/browse/AMQ-8451?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17484561#comment-17484561
]
Varun Ramachandran commented on AMQ-8451:
-----------------------------------------
Thanks for your suggestion [~jbonofre]
After setting the upload url to the BlobTransferPolicy, I don't notice the
issue anymore. Previously the Upload url was null and hence resulting in
incorrect host issue.
{code:java}
if (message instanceof BlobMessage) {
ActiveMQBlobMessage blobMessage = (ActiveMQBlobMessage) message;
BlobTransferPolicy blobTransferPolicy = new
BlobTransferPolicy();
blobTransferPolicy.setUploadUrl("http://blob-service:8080/blob/");
blobMessage.setBlobDownloader(new
BlobDownloader(blobTransferPolicy)); commandInputStream = new
CommandInputStream(blobMessage.getInputStream());
command = commandInputStream.getCommand(); {code}
Thanks,
Varun
> Message URL Host is incorrect
> -----------------------------
>
> Key: AMQ-8451
> URL: https://issues.apache.org/jira/browse/AMQ-8451
> Project: ActiveMQ
> Issue Type: Bug
> Components: JMS client
> Affects Versions: 5.16.2
> Reporter: Varun Ramachandran
> Assignee: Jean-Baptiste Onofré
> Priority: Major
> Fix For: 5.17.0, 5.16.4
>
>
> After I upgraded the Active MQ client version from 5.15.12 to 5.16.2 in our
> pom.xml, I encounter the below exception for Blob Messages. I tried upgrading
> to 5.16.3 and find the same problem
> *Exception*
> _java.io.IOException: The message URL host is incorrect_
> _at
> org.apache.activemq.blob.DefaultBlobDownloadStrategy.getInputStream(DefaultBlobDownloadStrategy.java:51)_
> _at
> org.apache.activemq.blob.BlobDownloader.getInputStream(BlobDownloader.java:38)_
> _at
> org.apache.activemq.command.ActiveMQBlobMessage.getInputStream(ActiveMQBlobMessage.java:132)_
>
> The URL host of our message is same for both the versions, however it just
> gives an exception for the 5.16.2 version.
> http://blob-service:8080/blob/ID
> ID Masked
> Thanks in advance!
>
--
This message was sent by Atlassian Jira
(v8.20.1#820001)