My Oracle Support Banner

WLS 7.0 SP2 - Invalid Destination Name exception when creating a queue. (Doc ID 773885.1)

Last updated on NOVEMBER 16, 2018

Applies to:

Oracle Weblogic Server / WebLogic Server / 7.0
Information in this document applies to any platform

Goal

When trying to create a queue on WebLogic Server 7.0 SP2, an Invalid Destination Name exception occurs. A Connection
Factory of "BTJMSConnectionFactory" is created with the WebLogic Console. Is it possible to not define the
Destination using the WebLogic Console? So instead of:

   Queue actQue = (Queue) ctx.lookup("BTJMSActionQueue"); 
   QueueReceiver queueReceiver_ = queueSession_.createReceiver(actQue); 
 
The following would be used:
 
   Queue actQue = queueSession_.createQueue("BTJMSActionQueue"); // 
   <---- Exception thrown here----> 
   QueueReceiver queueReceiver_ = queueSession_.createReceiver(actQue); 
 
This throws an Invalid Destination Name exception. However, it is the exact same name as defined in the WebLogic
Console. Why can't the queue be created?

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
  Goal
  Solution
  References

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.