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:- -
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??
-
-
a3xpw8
-
-
UnicastRef2]]
-
-
at weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:47)
-
-
at weblogic.jndi.WLInitialContextFactoryDelegate.toNamingException(WLInitialContextFactoryDelegate.java:636)
-
-
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:306)
-
-
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:239)
-
-
at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:135)
-
-
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
-
-
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
-
-
at javax.naming.InitialContext.init(Unknown Source)
-
-
at javax.naming.InitialContext.<init>(Unknown Source)
-
-
at TopicReceive.getInitialContext(TopicReceive.java:175)
-
-
at TopicReceive.main(TopicReceive.java:142)
-
-
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??
-
The JNDI connection code is:- -
tconFactory = (TopicConnectionFactory) PortableRemoteObject.narrow(
-
ctx.lookup("DummyConnectionFactory"), TopicConnectionFactory.class);
-
tcon = tconFactory.createTopicConnection("xyz","xyz");
-
tsession = tcon.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
-
topic = (Topic) PortableRemoteObject.narrow(ctx.lookup(topicName), Topic.class);
-
tsubscriber = tsession.createSubscriber(topic);
-
tsubscriber.setMessageListener(this);
-
tcon.start();
-
Any help would be great.
-Hussain.
1 6285
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 -
environment.put(Context.SECURITY_PRINCIPAL, USER);
-
environment.put(Context.SECURITY_CREDENTIALS, PASSWORD);
-
environment.put(Context.SECURITY_AUTHENTICATION, "simple");
-
jndiContext = new InitialContext(environment);
-
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 -
javax.naming.CommunicationException [Root exception is weblogic.socket.UnrecoverableConnectException: [Login failed for an unknown reason: HTTP/1.0 501 Not Supported]]
-
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 ..
Sign in to post your reply or Sign up for a free account.
Similar topics |
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...
|
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,
|
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
|
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...
|
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 =
| |
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.
|
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})
|
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
|
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?
|
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...
|
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...
| |
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...
|
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...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |