[
https://issues.apache.org/activemq/browse/AMQ-3017?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=63534#action_63534
]
Dejan Bosanac commented on AMQ-3017:
------------------------------------
OS X, this is the exception
{code}
java.lang.ClassCastException: sun.net.www.protocol.file.FileURLConnection
cannot be cast to java.net.HttpURLConnection
at
org.apache.activemq.blob.DefaultBlobUploadStrategy.uploadStream(DefaultBlobUploadStrategy.java:49)
at
org.apache.activemq.blob.DefaultBlobUploadStrategy.uploadFile(DefaultBlobUploadStrategy.java:43)
at org.apache.activemq.blob.BlobUploader.upload(BlobUploader.java:51)
at
org.apache.activemq.command.ActiveMQBlobMessage.onSend(ActiveMQBlobMessage.java:173)
at org.apache.activemq.ActiveMQSession.send(ActiveMQSession.java:1738)
at
org.apache.activemq.ActiveMQMessageProducer.send(ActiveMQMessageProducer.java:231)
at
org.apache.activemq.ActiveMQMessageProducerSupport.send(ActiveMQMessageProducerSupport.java:241)
at
org.apache.activemq.blob.FilesystemBlobTest.testBlobFile(FilesystemBlobTest.java:72)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at junit.framework.TestCase.runTest(TestCase.java:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
at
org.apache.activemq.CombinationTestSupport.runBare(CombinationTestSupport.java:90)
at
org.apache.activemq.CombinationTestSupport.runBare(CombinationTestSupport.java:96)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at
org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:79)
at
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:115)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:140)
at org.apache.maven.surefire.Surefire.run(Surefire.java:109)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1017)
{code}
> Add support for stream data to filesystem when using BlobMessages
> -----------------------------------------------------------------
>
> Key: AMQ-3017
> URL: https://issues.apache.org/activemq/browse/AMQ-3017
> Project: ActiveMQ
> Issue Type: New Feature
> Components: Broker
> Reporter: Norman Maurer
> Assignee: Dejan Bosanac
> Attachments: AMQ-3017-v2.diff, AMQ-3017.diff
>
>
> Using BlobMessages can help to reduce the memory usage very much when you
> have the need to transfer many big messages via activemq. However for this
> you need some kind of storage which can be used to transfer the payload to.
> ActiveMQ can handle the transfer with FTP and HTTP at the moment. However if
> you only run an embed ActiveMQ broker this is often overkill and just plain
> slow. Here it would be cool to just stream the payload from and to the
> filesystem, to get the memory improvement when using BlobMessages but keep
> the complex level low + have high speed.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.