Swift Error MQMD.Format Field is not valid - ibm-mq

Have a Apache Camel based app submitting a message to SWIFT over Websphere MQ
<SwMsg:TransferAnswer>Failed Storage</SwMsg:TransferAnswer>
<SwMsg:TransferError>
<SwMsg:ErrorCode>Sw.Gbl.MQMDError</SwMsg:ErrorCode>
<SwMsg:ErrorText>MQMD.Format field is not valid</SwMsg:ErrorText>
</SwMsg:TransferError>
tried settting JMS_IBM_MQMD_Format to MQSTR, MQFMT_NONE, MQRFH2 etc
tried changing the JMSMessage Type to Text, Bytes
still the blanket reject message is the only response

setting the header JMS_IBM_Format to blank solved the issue
However setting JMS_IBM_MQMD_Format to blank didnt help
this is the camel property i am setting and it working as expected

Related

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.

Esper AMQPSource not receiving events

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.

Login fails and getting Runtime Error when submitting password of a specific pattern

I am using ASP.NET MVC for a project, Everything works fine. Recently someone reported that if he tried to login to the interface with this password J&Mg<in5 the interface showed error page I mean not even the custom 500 error page which we have configured and works otherwise.
I have elmah configured on this project, no error is shown there too.
I little more investigation showed that all password of type, examples below
<ee
<fd
<reee
i.e "<" followed by any character gave this error.
Why is this error coming, and how to resolve this ?
I think it's the request validation that triggers in this case. Try disabling it and see if it helps. Also, try looking at the event log, it should contain a bit more useful details on the matter.
Hope this helps.

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.

HermesJMS - Linked Exception : null when attempting to post an XML message

I am using HermesJMS version 1.14. I am attempting to post an XML message to an IBM WebSphere MQ queue via HermesJMS.
I face two issues namely,
If I select a queue, right click, select "New" -> "Message" and then copy , paste the xml message as a text in the 'Payload' tab, it gives me an 'MQ Authentication Error, invalid security credentials'. However, I have very well supplied the security credentials before actually pasting the payload.
If I click on the X button (a visual indication to upload) and select an XML message (xml file in filesystem), it gives me an error stating that "Linked Exception : null".
I have been searching (googling) for about a week's time. I had also posted the same in HermesJMS forum yesterday.
Any idea on this would be highly appreciable.

Resources