Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 83353 invoked from network); 21 Oct 2008 14:13:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Oct 2008 14:13:44 -0000 Received: (qmail 5675 invoked by uid 500); 21 Oct 2008 14:13:46 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 5643 invoked by uid 500); 21 Oct 2008 14:13:45 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 5624 invoked by uid 99); 21 Oct 2008 14:13:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Oct 2008 07:13:45 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Oct 2008 14:12:44 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B5102234C229 for ; Tue, 21 Oct 2008 07:12:52 -0700 (PDT) Message-ID: <2143677115.1224598372740.JavaMail.jira@brutus> Date: Tue, 21 Oct 2008 07:12:52 -0700 (PDT) From: "Rob Davies (JIRA)" To: dev@activemq.apache.org Subject: [jira] Assigned: (AMQ-1964) StreamMessage.writeObject() doesn't behave according to the JMS 1.1 specification In-Reply-To: <1023261976.1222975132590.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/AMQ-1964?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rob Davies reassigned AMQ-1964: ------------------------------- Assignee: Rob Davies > StreamMessage.writeObject() doesn't behave according to the JMS 1.1 specification > --------------------------------------------------------------------------------- > > Key: AMQ-1964 > URL: https://issues.apache.org/activemq/browse/AMQ-1964 > Project: ActiveMQ > Issue Type: Bug > Components: Broker > Affects Versions: 4.1.1 > Reporter: Andrew Perepelytsya > Assignee: Rob Davies > > The subj method has restrictions on the types of objects it can accept, but those restrictions aren't implemented. Testcase below. > {code:java} > // get a live session > ConnectionFactory cf = new ActiveMQConnectionFactory("vm://localhost?broker.persistent=false&broker.useJmx=false"); > Session session = cf.createConnection().createSession(false, Session.AUTO_ACKNOWLEDGE); > StreamMessage sm = session.createStreamMessage(); > // only primitives (with wrappers), String and byte[] are allowed: > // http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/jms/StreamMessage.html#writeObject(java.lang.Object) > try > { > sm.writeObject(new Object()); > fail("Should've failed with MessageFormatException"); > } > catch (MessageFormatException e) > { > // JMS 1.1 spec, Section 7.3 Standard Exceptions, page 89, 1st paragraph > // expected > } > {code} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.