You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by "Steve.V." <st...@sas.com> on 2012/05/07 20:49:02 UTC

Re: I POST a msg via HTTP, but I don't see the msg details/body

I just tried it using ActiveMQ 5.6.0, but I still don't see any message body. 
When I browse the message via
"ocalhost:8161/admin/message.jsp?id=ID:d22275-4570-1336415971483-3:1:1:1:1&JMSDestination=request",
the "Type" is blank even though my POST does specify "Content-Type:
text/plain; charset=windows-1252".  Any ideas?  Thanks in advance.

-----
Stephen Vincent
--
View this message in context: http://activemq.2283324.n4.nabble.com/I-POST-a-msg-via-HTTP-but-I-don-t-see-the-msg-details-body-tp4609797p4615529.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: I POST a msg via HTTP, but I don't see the msg details/body

Posted by "Steve.V." <st...@sas.com>.
I can successfully put and get a message using my client app by way of HTTP
if I change the Content-Type from text/plain to
"application/x-www-form-urlencoded" and precede my body with
"destination=request&type=queue&body=".

The default demo web app doesn't seem to like the way I tried to send
text/plain.  Can anyone point me to where I can learn what the demo app does
support? 

Thanks,
sv 

-----
Stephen Vincent
--
View this message in context: http://activemq.2283324.n4.nabble.com/I-POST-a-msg-via-HTTP-but-I-don-t-see-the-msg-details-body-tp4609797p4618738.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: I POST a msg via HTTP, but I don't see the msg details/body

Posted by "Steve.V." <st...@sas.com>.
It appears that the message did not get my content.  The following is a debug
excerpt from the broker log.  Please let me know if it reveals a mistake on
my end.  Thanks in advance.

2012-05-08 12:29:10,308 | DEBUG | created
SCEP@1efb0be{l(/127.0.0.1:53827)<->r(/127.0.0.1:8161),d=false,open=true,ishut=false,oshut=false,rb=false,wb=false,w=true,i=0}-{AsyncHttpConnection@13cb1eb,g=HttpGenerator{s=0,h=-1,b=-1,c=-1},p=HttpParser{s=-14,l=0,c=0},r=0}
| org.eclipse.jetty.io.nio | qtp10966839-23 Selector0
2012-05-08 12:29:10,308 | DEBUG | filled 0/0 |
org.eclipse.jetty.http.HttpParser | qtp10966839-27
2012-05-08 12:29:10,308 | DEBUG | filled 197/197 |
org.eclipse.jetty.http.HttpParser | qtp10966839-29
2012-05-08 12:29:10,308 | DEBUG | REQUEST /demo/message/request on
AsyncHttpConnection@13cb1eb,g=HttpGenerator{s=0,h=-1,b=-1,c=-1},p=HttpParser{s=2,l=5,c=38},r=1
| org.eclipse.jetty.server.Server | qtp10966839-29 -
/demo/message/request?type=queue
2012-05-08 12:29:10,308 | DEBUG | scope null||/demo/message/request @
o.e.j.w.WebAppContext{/admin,file:/C:/apache-activemq-5.6.0/webapps/admin/}
| org.eclipse.jetty.server.handler.ContextHandler | qtp10966839-29 -
/demo/message/request?type=queue
2012-05-08 12:29:10,308 | DEBUG | scope null||/demo/message/request @
o.e.j.w.WebAppContext{/demo,file:/C:/apache-activemq-5.6.0/webapps/demo/} |
org.eclipse.jetty.server.handler.ContextHandler | qtp10966839-29 -
/demo/message/request?type=queue
2012-05-08 12:29:10,308 | DEBUG | context=/demo||/message/request @
o.e.j.w.WebAppContext{/demo,file:/C:/apache-activemq-5.6.0/webapps/demo/} |
org.eclipse.jetty.server.handler.ContextHandler | qtp10966839-29 -
/demo/message/request?type=queue
2012-05-08 12:29:10,308 | DEBUG |
sessionManager=org.eclipse.jetty.server.session.HashSessionManager@157bf4c |
org.eclipse.jetty.server.session | qtp10966839-29 -
/demo/message/request?type=queue
2012-05-08 12:29:10,308 | DEBUG | session=null |
org.eclipse.jetty.server.session | qtp10966839-29 -
/demo/message/request?type=queue
2012-05-08 12:29:10,308 | DEBUG | servlet /demo|/message|/request ->
MessageServlet | org.eclipse.jetty.servlet.ServletHandler | qtp10966839-29 -
/demo/message/request?type=queue
2012-05-08 12:29:10,308 | DEBUG | chain=session->MessageServlet |
org.eclipse.jetty.servlet.ServletHandler | qtp10966839-29 -
/demo/message/request?type=queue
2012-05-08 12:29:10,308 | DEBUG | call filter session |
org.eclipse.jetty.servlet.ServletHandler | qtp10966839-29 -
/demo/message/request?type=queue
2012-05-08 12:29:10,308 | DEBUG | new session & id
1v5aao5pyqpfg1kmwxub8n332w 1v5aao5pyqpfg1kmwxub8n332w |
org.eclipse.jetty.server.session | qtp10966839-29 -
/demo/message/request?type=queue
2012-05-08 12:29:10,308 | DEBUG | call servlet MessageServlet |
org.eclipse.jetty.servlet.ServletHandler | qtp10966839-29 -
/demo/message/request?type=queue
2012-05-08 12:29:10,308 | DEBUG | destination uri=request |
org.apache.activemq.web.MessageServletSupport | qtp10966839-29 -
/demo/message/request?type=queue
2012-05-08 12:29:10,308 | DEBUG | request (queue) |
org.apache.activemq.web.MessageServletSupport | qtp10966839-29 -
/demo/message/request?type=queue
2012-05-08 12:29:10,324 | DEBUG | Setting up new connection id:
ID:d22275-4466-1336485740174-3:9, address: vm://localhost#16, info:
ConnectionInfo {commandId = 1, responseRequired = true, connectionId =
ID:d22275-4466-1336485740174-3:9, clientId =
ID:d22275-4466-1336485740174-2:9, clientIp = null, userName = system,
password = *****, brokerPath = null, brokerMasterConnector = false,
manageable = true, clientMaster = true, faultTolerant = false,
failoverReconnect = false} | org.apache.activemq.broker.TransportConnection
| ActiveMQ Task-27
2012-05-08 12:29:10,324 | DEBUG | localhost adding consumer:
ID:d22275-4466-1336485740174-3:9:-1:1 for destination:
ActiveMQ.Advisory.TempQueue,ActiveMQ.Advisory.TempTopic |
org.apache.activemq.broker.region.AbstractRegion | ActiveMQ Task-25
2012-05-08 12:29:10,324 | DEBUG | Sending message to: queue://request with
text: null | org.apache.activemq.web.MessageServlet | qtp10966839-29 -
/demo/message/request?type=queue
2012-05-08 12:29:10,324 | DEBUG | localhost Message
ID:d22275-4466-1336485740174-3:9:1:1:1 sent to queue://request |
org.apache.activemq.broker.region.Queue | ActiveMQ Task-27
2012-05-08 12:29:10,324 | DEBUG | request toPageIn: 6, Inflight: 0,
pagedInMessages.size 0, enqueueCount: 8, dequeueCount: 3 |
org.apache.activemq.broker.region.Queue | BrokerService[localhost] Task-2
2012-05-08 12:29:10,324 | DEBUG | Sent! to destination: queue://request
message: ActiveMQTextMessage {commandId = 0, responseRequired = false,
messageId = ID:d22275-4466-1336485740174-3:9:1:1:1, originalDestination =
null, originalTransactionId = null, producerId = null, destination =
queue://request, transactionId = null, expiration = 0, timestamp =
1336494550324, arrival = 0, brokerInTime = 0, brokerOutTime = 0,
correlationId = null, replyTo = null, persistent = true, type = null,
priority = 5, groupID = null, groupSequence = 0, targetConsumerId = null,
compressed = false, userID = null, content = null, marshalledProperties =
null, dataStructure = null, redeliveryCounter = 0, size = 0, properties =
null, readOnlyProperties = false, readOnlyBody = false, droppable = false,
text = null} | org.apache.activemq.web.WebClient | qtp10966839-29 -
/demo/message/request?type=queue
2012-05-08 12:29:10,324 | DEBUG | scope null||/demo/message/request @
o.e.j.w.WebAppContext{/fileserver,file:/C:/apache-activemq-5.6.0/webapps/fileserver/}
| org.eclipse.jetty.server.handler.ContextHandler | qtp10966839-29 -
/demo/message/request?type=queue
2012-05-08 12:29:10,324 | DEBUG | RESPONSE /demo/message/request  200 |
org.eclipse.jetty.server.Server | qtp10966839-29 -
/demo/message/request?type=queue
2012-05-08 12:29:10,324 | DEBUG | filled 0/0 |
org.eclipse.jetty.http.HttpParser | qtp10966839-29



-----
Stephen Vincent
--
View this message in context: http://activemq.2283324.n4.nabble.com/I-POST-a-msg-via-HTTP-but-I-don-t-see-the-msg-details-body-tp4609797p4618000.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.