473,761 Members | 10,057 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Connecting to a JMS topic

28 New Member
Hi ALL,
I am trying to connect to a JMS topic but getting an exception.To connect to that JMS topic username and password are required.I have provided the required username and the pwd but still getting this exception.
The exception is as follows:-
Expand|Select|Wrap|Line Numbers
  1. javax.naming.CommunicationException [Root exception is weblogic.socket.UnrecoverableConnectException: [Login failed for an unknown reason://sam03:8083/q~q~uq~???sr org.jnp.server.NamingServer_Stubxrjava.rmi.server.RemoteStub??????exrjava.rmi.server.RemoteObject?a??
  2.  
  3. a3xpw8
  4.  
  5.       UnicastRef2]]
  6.  
  7.         at weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:47)
  8.  
  9.         at weblogic.jndi.WLInitialContextFactoryDelegate.toNamingException(WLInitialContextFactoryDelegate.java:636)
  10.  
  11.         at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:306)
  12.  
  13.         at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:239)
  14.  
  15.         at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:135)
  16.  
  17.         at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
  18.  
  19.         at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
  20.  
  21.         at javax.naming.InitialContext.init(Unknown Source)
  22.  
  23.         at javax.naming.InitialContext.<init>(Unknown Source)
  24.  
  25.         at TopicReceive.getInitialContext(TopicReceive.java:175)
  26.  
  27.         at TopicReceive.main(TopicReceive.java:142)
  28.  
  29. Caused by: weblogic.socket.UnrecoverableConnectException: [Login failed for an unknown reason://sam03:8083/q~q~uq~???sr org.jnp.server.NamingServer_Stubxrjava.rmi.server.RemoteStub??????exrjava.rmi.server.RemoteObject?a??
  30.  

The JNDI connection code is:-
Expand|Select|Wrap|Line Numbers
  1. tconFactory = (TopicConnectionFactory) PortableRemoteObject.narrow(
  2.                                                             ctx.lookup("DummyConnectionFactory"), TopicConnectionFactory.class);
  3.                                     tcon = tconFactory.createTopicConnection("xyz","xyz");
  4.                                     tsession = tcon.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
  5.                                     topic = (Topic) PortableRemoteObject.narrow(ctx.lookup(topicName),                                                            Topic.class);                                  
  6.   tsubscriber = tsession.createSubscriber(topic);
  7.                                     tsubscriber.setMessageListener(this);
  8.                                     tcon.start();
  9.  
Any help would be great.

-Hussain.
Jun 8 '07 #1
1 6285
Salmon233
1 New Member
First of all you have not reached the line where you tying to get Topic. You failed on getting InitialContext. This error says that you must set login/password not for Topic or maybe Queue, but for InitialContext
Expand|Select|Wrap|Line Numbers
  1. environment.put(Context.SECURITY_PRINCIPAL, USER);
  2. environment.put(Context.SECURITY_CREDENTIALS, PASSWORD);
  3. environment.put(Context.SECURITY_AUTHENTICATION, "simple");
  4. jndiContext = new InitialContext(environment);
  5.  
That's maybe not the answer, but obvious logic according to your code lines. I also have pretty similar problem, but the error in my case is
Expand|Select|Wrap|Line Numbers
  1. javax.naming.CommunicationException [Root exception is weblogic.socket.UnrecoverableConnectException: [Login failed for an unknown reason: HTTP/1.0 501 Not Supported]]
  2.  
and first steps which a made was setting of the password/loging for context. But that doesn't helped)))) But maybe it gives some directions .. who knows ..
Sep 17 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
1983
by: John Camp | last post by:
Hey, I don't know much more than the basics of C++, and I've been trying to write a program that will let me connect to an actual proccess through a port. The thing is, I don't just want to know if the port is open, but if there is actually a program on the other end to connect to. The reason I need to know this is because I want to create a program that will see if a game server is running (a game without any master servers or anything...
2
1742
by: John Spiegel | last post by:
Hey All, This may be a bit off topic, but I'm looking for recommendations on sources for OLEDB/ODBC drivers that will allow me to connect w/ ADO.NET to an informix database hosted locally on a Linux box. I'll admit that next to being able to connect to an existing driver given a connection string, I'm not very familiar with the finer points involved. TIA,
3
6106
by: Krish | last post by:
Hi Friends, Does anyone know how to connect access database into Visual C++ in Visual Studio 6.0. I know the procedure to connect access database into Visual Studio .Net. But Visual Studio 6.0 is more complicted than .Net. Can someone help me pls? Thanks Krish
14
3097
by: Hemant Shah | last post by:
Folks, I installed DB2 UDB 8.2 FP8 ESE on Win 2K syatem. I cataloged node and database on AIX system. When I try to connect to the database on windows system from an AIX system I get following error: # db2 connect to a2local SQL30081N A communication error has been detected. Communication protocol being used: "TCP/IP". Communication API being used: "SOCKETS". Location where the error was detected: "10.90.10.219". Communication...
14
1863
by: John Spiegel | last post by:
Hi all, I'm missing something, probably stupid, on connecting to a SQL Server database from an aspx file. I haven't really done much w/ SQL Server and suspect that it's a problem on that side. I've installed the SQL Server developer edition locally and do have a pubs database. The connection I'm attempting is the following: SqlConnection objConnection =
12
2790
by: Ann Marinas | last post by:
Hi all, I would like to ask for some help regarding separating the asp.net webserver and the sql server. I have created an asp.net application for a certain company. Initially, we installed both the iis and sql server in a single machine. Not too long ago, the machine had some hardware problems, and management has decided to purchase new servers, for both asp.net and sql server.
3
3744
by: GTDriver | last post by:
I'm trying to connect my application with a web service located on my own web server(localhost). I guess when the solution/proect is built it makes a file called 'Web References\localhost\References.vb' In this file a line of code reports the following error: Line of code: Dim results() As Object = Me.Invoke("GetCustomers", New Object() {Country})
18
1629
by: Barry Wright | last post by:
Hi All, I have been connecting to this group through Rogers cable my internet service provider. However, Rogers has announced that effective Dec 15th they will no longer providing access to "usenet". What is your preferred method of accessing this group? Regards, Barry Wright
3
4070
by: Laurence | last post by:
Hi there, Does somebody know the efficent way to connect DB2/400? Through iSeries Access ODBC/OLEDB driver or DB2 Connect? Which will more fast and efficent? In addition, does DB2 Connect use APPC over TCP/IP protocol? Or SNA protocol?
0
10107
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9945
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9765
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8768
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7324
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5214
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5361
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3863
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3442
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.