[ http://jira.jboss.com/jira/browse/JBAS-1119?page=history ]

Scott M Stark updated JBAS-1119:
--------------------------------

      Assign To: Adrian Brock  (was: Scott M Stark)
    Description: 
SourceForge Submitter: robboom .
Hi,

there is a bug in the Consumer Message Driven Bean 
when connection to a Queue destination-type. When in 
the ejb-jar.xml the Message Driven Bean is configured 
as "<destination-type>javax.jms.Queue</destination-
type>", The AQjmsConnection tries to create a Topic 
Session (and the destination is a queue...):


11:55:55,009 WARN  [JMSContainerInvoker] JMS 
provider failure detected: 
oracle.jms.AQjmsException: JMS-107: Operation not 
allowed on QueueConnection
        at oracle.jms.AQjmsError.throwEx
(AQjmsError.java:319)
        at 
oracle.jms.AQjmsConnection.createTopicSession
(AQjmsConnection.java:226)
        at 
oracle.jms.AQjmsConnectionWrapper.createTopicSession
(AQjmsConnectionWrapper.java:106)
        at 
org.jboss.jms.asf.StdServerSessionPool.create
(StdServerSessionPool.java:338)
        at 
org.jboss.jms.asf.StdServerSessionPool.<init>
(StdServerSessionPool.java:151)
        at 
org.jboss.jms.asf.StdServerSessionPoolFactory.getServer
SessionPool(StdServerSessionPoolFactory.java:101)
        at 
org.jboss.ejb.plugins.jms.JMSContainerInvoker.createSess
ionPool(JMSContainerInvoker.java:1003)
        at 
org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreat
e(JMSContainerInvoker.java:644)
        at 
org.jboss.ejb.plugins.jms.JMSContainerInvoker.startServic
e(JMSContainerInvoker.java:674)
        at 
org.jboss.ejb.plugins.jms.JMSContainerInvoker$ExceptionL
istenerImpl.onException(JMSContainerInvoker.java:1173)
        at 
org.jboss.ejb.plugins.jms.JMSContainerInvoker$1.run
(JMSContainerInvoker.java:686)

When setting the Consumer to destination-type "Topic" 
everything seems to work but it's not a correct 
configuration.

Used:
-Windows and Linux
-Jboss 3.2.3
-Oracle Patch 10g
-JDK 1.4.2

  was:
SourceForge Submitter: robboom .
Hi,

there is a bug in the Consumer Message Driven Bean 
when connection to a Queue destination-type. When in 
the ejb-jar.xml the Message Driven Bean is configured 
as "<destination-type>javax.jms.Queue</destination-
type>", The AQjmsConnection tries to create a Topic 
Session (and the destination is a queue...):


11:55:55,009 WARN  [JMSContainerInvoker] JMS 
provider failure detected: 
oracle.jms.AQjmsException: JMS-107: Operation not 
allowed on QueueConnection
        at oracle.jms.AQjmsError.throwEx
(AQjmsError.java:319)
        at 
oracle.jms.AQjmsConnection.createTopicSession
(AQjmsConnection.java:226)
        at 
oracle.jms.AQjmsConnectionWrapper.createTopicSession
(AQjmsConnectionWrapper.java:106)
        at 
org.jboss.jms.asf.StdServerSessionPool.create
(StdServerSessionPool.java:338)
        at 
org.jboss.jms.asf.StdServerSessionPool.<init>
(StdServerSessionPool.java:151)
        at 
org.jboss.jms.asf.StdServerSessionPoolFactory.getServer
SessionPool(StdServerSessionPoolFactory.java:101)
        at 
org.jboss.ejb.plugins.jms.JMSContainerInvoker.createSess
ionPool(JMSContainerInvoker.java:1003)
        at 
org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreat
e(JMSContainerInvoker.java:644)
        at 
org.jboss.ejb.plugins.jms.JMSContainerInvoker.startServic
e(JMSContainerInvoker.java:674)
        at 
org.jboss.ejb.plugins.jms.JMSContainerInvoker$ExceptionL
istenerImpl.onException(JMSContainerInvoker.java:1173)
        at 
org.jboss.ejb.plugins.jms.JMSContainerInvoker$1.run
(JMSContainerInvoker.java:686)

When setting the Consumer to destination-type "Topic" 
everything seems to work but it's not a correct 
configuration.

Used:
-Windows and Linux
-Jboss 3.2.3
-Oracle Patch 10g
-JDK 1.4.2

    Environment: 

Attach the jndi provider configuration as it appears the AQjmsConnectionWrapper 
is claiming to be of type XATopicConnection. The StdServerSessionPoolFactory is 
giving preference to the type of factory instead of considering what the 
deployment metadata type is, so this probably is a problem with the 
StdServerSessionPoolFactory:

         if (con instanceof XATopicConnection)
         {
            xaSes = ((XATopicConnection)con).createXATopicSession();
            ses = ((XATopicSession)xaSes).getTopicSession();
         }
         else if (con instanceof XAQueueConnection)
         {
            xaSes = ((XAQueueConnection)con).createXAQueueSession();
            ses = ((XAQueueSession)xaSes).getQueueSession();
         }
         else if (con instanceof TopicConnection)
         {
            ses = ((TopicConnection)con).createTopicSession(transacted, ack);
            log.warn("Using a non-XA TopicConnection.  " +
                  "It will not be able to participate in a Global UOW");
         }
         else if (con instanceof QueueConnection)
         {
            ses = ((QueueConnection)con).createQueueSession(transacted, ack);
            log.warn("Using a non-XA QueueConnection.  " +
                  "It will not be able to participate in a Global UOW");
         }
         else
         {
            // should never happen really
            log.error("Connection was not reconizable: " + con);
            throw new JMSException("Connection was not reconizable: " + con);
         }


> Queue-ConsumerBean starts TopicSession (Oracle Patch 10g)
> ---------------------------------------------------------
>
>          Key: JBAS-1119
>          URL: http://jira.jboss.com/jira/browse/JBAS-1119
>      Project: JBoss Application Server
>         Type: Bug
>     Reporter: SourceForge User
>     Assignee: Adrian Brock

>
>
> SourceForge Submitter: robboom .
> Hi,
> there is a bug in the Consumer Message Driven Bean 
> when connection to a Queue destination-type. When in 
> the ejb-jar.xml the Message Driven Bean is configured 
> as "<destination-type>javax.jms.Queue</destination-
> type>", The AQjmsConnection tries to create a Topic 
> Session (and the destination is a queue...):
> 11:55:55,009 WARN  [JMSContainerInvoker] JMS 
> provider failure detected: 
> oracle.jms.AQjmsException: JMS-107: Operation not 
> allowed on QueueConnection
>       at oracle.jms.AQjmsError.throwEx
> (AQjmsError.java:319)
>       at 
> oracle.jms.AQjmsConnection.createTopicSession
> (AQjmsConnection.java:226)
>       at 
> oracle.jms.AQjmsConnectionWrapper.createTopicSession
> (AQjmsConnectionWrapper.java:106)
>       at 
> org.jboss.jms.asf.StdServerSessionPool.create
> (StdServerSessionPool.java:338)
>       at 
> org.jboss.jms.asf.StdServerSessionPool.<init>
> (StdServerSessionPool.java:151)
>       at 
> org.jboss.jms.asf.StdServerSessionPoolFactory.getServer
> SessionPool(StdServerSessionPoolFactory.java:101)
>       at 
> org.jboss.ejb.plugins.jms.JMSContainerInvoker.createSess
> ionPool(JMSContainerInvoker.java:1003)
>       at 
> org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreat
> e(JMSContainerInvoker.java:644)
>       at 
> org.jboss.ejb.plugins.jms.JMSContainerInvoker.startServic
> e(JMSContainerInvoker.java:674)
>       at 
> org.jboss.ejb.plugins.jms.JMSContainerInvoker$ExceptionL
> istenerImpl.onException(JMSContainerInvoker.java:1173)
>       at 
> org.jboss.ejb.plugins.jms.JMSContainerInvoker$1.run
> (JMSContainerInvoker.java:686)
> When setting the Consumer to destination-type "Topic" 
> everything seems to work but it's not a correct 
> configuration.
> Used:
> -Windows and Linux
> -Jboss 3.2.3
> -Oracle Patch 10g
> -JDK 1.4.2

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.jboss.com/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-Development mailing list
JBoss-Development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to