Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 886482 Details for
Bug 1087852
Org.Apache.Qpid.Messaging.Message.SetContentObject(object) method cannot set Dictionary<> or Collection<> types as message content
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Modified C# helloworld example to reproduce this issue
csharp.example.helloworld.cs (text/x-csharp), 2.70 KB, created by
Petra Svobodová
on 2014-04-15 12:58:25 UTC
(
hide
)
Description:
Modified C# helloworld example to reproduce this issue
Filename:
MIME Type:
Creator:
Petra Svobodová
Created:
2014-04-15 12:58:25 UTC
Size:
2.70 KB
patch
obsolete
>/* > * > * Licensed to the Apache Software Foundation (ASF) under one > * or more contributor license agreements. See the NOTICE file > * distributed with this work for additional information > * regarding copyright ownership. The ASF licenses this file > * to you under the Apache License, Version 2.0 (the > * "License"); you may not use this file except in compliance > * with the License. You may obtain a copy of the License at > * > * http://www.apache.org/licenses/LICENSE-2.0 > * > * Unless required by applicable law or agreed to in writing, > * software distributed under the License is distributed on an > * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY > * KIND, either express or implied. See the License for the > * specific language governing permissions and limitations > * under the License. > * > */ > >using System; >using Org.Apache.Qpid.Messaging; >using System.Collections.Generic; >using System.Collections.ObjectModel; > >namespace Org.Apache.Qpid.Messaging { > class Program { > static void Main(string[] args) { > String broker = args.Length > 0 ? args[0] : "localhost:5672"; > String address = args.Length > 1 ? args[1] : "amq.topic"; > > Connection connection = null; > try { > connection = new Connection(broker); > connection.Open(); > Session session = connection.CreateSession(); > > Receiver receiver = session.CreateReceiver(address); > Sender sender = session.CreateSender(address); > > Message msg = new Message(); > //msg.SetContentObject("hello, world"); //functional > > //functionless > Collection <string> l = new Collection<string> (); > l.Add("hello"); > l.Add("world"); > msg.SetContentObject(l); > > //functionless > /*Dictionary<string, object> dict = new Dictionary<string, object>(); > dict["first"] = "hello"; > dict["second"] = 3; > msg.SetContentObject(dict);*/ > > sender.Send(msg); > > Message message = new Message(); > message = receiver.Fetch(DurationConstants.SECOND * 1); > > Console.WriteLine("{0}", message.GetContent().ToString()); > session.Acknowledge(); > > connection.Close(); > } catch (Exception e) { > Console.WriteLine("Exception {0}.", e); > if (null != connection) > connection.Close(); > } > } > } >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1087852
: 886482