title: "JMSException: Invalid character '\n' in value part of property"
body: <p>I am trying to connect to a JMS server and post a message to the queue.  When I run the Java program that creates a simple MapMessage and inserts it into the queue, I get this exception:</p>
  
  <pre><code>javax.jms.JMSException: Invalid character '\n' in value part of property
  </code></pre>
  
  <p>I don't know what "property" it is referring to, because none of the configuration files has a '\n' in any of its values.</p>
  
  <p>The code block that causes this exception is:</p>
  
  <pre><code>InitialContext ctx = new InitialContext();
  Queue queue = (Queue)ctx.lookup("MyQueue");
  ConnectionFactory factory = (ConnectionFactory)ctx.lookup("ConnectionFactory");
  Connection connection = factory.createConnection();
  Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
  </code></pre>
  
  <p>The last line throws the "Invalid character JMSException".</p>