Esper AMQPSource not receiving events - amqp

I'm trying to use the AMQPSource and I'm getting the error describe below, also imports are not working in EPL module. In advance, I test adding full package name to DistanceEvent (events.DistanceEvent and does not work).
To sending a message i'm using the publish Rabbitmq webadmin queue option with the next payload:
{"distance":33}
Could anyone help me?

The "IO-error deserializing object" is the reason you are not seeing data.
The "AMQPToObjectCollectorSerializable" expects the AMQP message to carry a valid JVM-serialized object however the "invalid header" means that the message content cannot be read by the JVM. Check the sender making sure it produces a AMQP message with a JVM-serialized object or may use replace "AMQPToObjectCollectorSerializable" with a deserializer that can understand your message. The code for "AMQPToObjectCollectorSerializable" can be found in Github if your are not sure how it deserializes.

Related

Error message : [This stream is not active and must be resumed using the \'forceActive\' parameter. (STREAM_INACTIVE)]

I get the above error message while running replay query. Although in the documentation I could only find this:
“interactions” will contain “FORCE_ACTIVE” (this can be used by clients to detect the inactive stream and stop playback, instead of having to look for specific types).
In my understanding, we can just observe the value of "FORCE_ACTIVE" parameter to stop playback. While in the error message, I am being told to resume the stream by using "FORCE_ACTIVE". I couldn't find out through the documentation about sending the "FORCE_ACTIVE" parameter from my end. Please help me understand the proper course of action if I get the above error message. Thank you.
For now, you should display a message saying "Someone else is listening to your Pandora account. Only one person can listen at a time. Please try again later." We are working on adding a mechanism which would allow users to decide if they want to "take over control" but it's not ready yet. For reference, this is what shows up in the Pandora app when this situation arises:
The option to "Let me listen" is what we're adding. For now, you just have to default to "Let them listen".

A rest service using spring 2 and jersey, unable to get response for some consumers

We have an application that uses asyncresponse and writes the data into a stream.
I upgraded to spring2 from 1.5.
And not sure if it could be releated but now with postman I get this error "Unexpected end of file".
Even in a java client , I get error "java.IO.EOFException: Unexpected end of zlib input stream".
But I get expected result in a curl command.
Now I suspect, this could be something either with user-agent or somewhere in spring2 or jersey , I need to set some properties to get rid of this.
There is no security , I excluded SecurityAutoConfiguration.java, in case somewhere it checks some user-agent.
Because of error I see in java client, I tried with server.compression.enabled=false (which is default anyway), but no luck.
I suppose I need to edit the question.
It seems there is some issue using StreamingOutput using spring2x. This is not streaming which I assumes results in all of above stated issues.
Any help is appreciated.

Spring Integration - Error Channel - Getting the original message

Is there any way to get the original message in the error channel. All I am able to get the Message of Exception type. I need to get the original message and log it.
Highly appreciate your help. Thanks!
The ErrorMessage payload is a MessagingException.
The exception has two properties cause and failedMessage which is the message at the time of the failure.

Sending file using Spring Batch sftp

I'm trying to send a file with sftp using Spring Batch.
I find a great example/tutorial on this site https://blog.codecentric.de/en/2011/09/send-data-secure-with-sftp-and-spring-batch/ which I followed, though I am getting the "Could not send file per SFTP: ..." caught exception in the example in the link above in the SftpTasklet class. I believe my problem is that the int-sftp:outbound-channel-adapter in my application context is never getting called. The id associated with it sftpOutboundAdapter not referenced anywhere else on the page and I do not see how it gets called. I have found similar tutorials on other sites where it is also never explicitly called.
Basically, my question comes down to: how does the spring batch int-sftp:outbound-channel-adapter get called?
Thanks in advance
The tasklet sends a message (with a File payload) to outputChannel (sftpChannel.send(message);) which, in turn sends it to the outbound adapter.
Turn on DEBUG logging for org.springframework.integration to see the messasge flow.

Spring file upload with custom message

Using Spring 3.07
I have this upload form which is pretty much the basic spring example for such. Now it displays a message "No file selected" which is correct. However, I don't want this message. My users expect a message in a different language if at all. Does anybody know how I can get rid of this message?
This has nothing to do with Spring. That message is a browser message for input type file. Mock and scorn reigns down upon me.

Resources