- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- java initial context issue
Operating System - Linux
1825551
Members
2638
Online
109681
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2006 11:07 PM
тАО05-30-2006 11:07 PM
java initial context issue
Hi,
I use CNCtxFactory to create initial context in java application:
env.put(InitialContext.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.cosnaming.CNCtxFactory");
env.put(InitialContext.PROVIDER_URL, URL);
initialContext_ = new InitialContext(env);
It works fine on Windows, but it hangs when I run it on HP-UX 11.11 (JDK 1.4.2_10, all HP-UX patches recomended for JDK are installed). It hangs when the target server is accessable.
Has anybody had such issue? How to solve it?
I use CNCtxFactory to create initial context in java application:
env.put(InitialContext.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.cosnaming.CNCtxFactory");
env.put(InitialContext.PROVIDER_URL, URL);
initialContext_ = new InitialContext(env);
It works fine on Windows, but it hangs when I run it on HP-UX 11.11 (JDK 1.4.2_10, all HP-UX patches recomended for JDK are installed). It hangs when the target server is accessable.
Has anybody had such issue? How to solve it?
- Tags:
- Java
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-31-2006 12:07 AM
тАО05-31-2006 12:07 AM
Re: java initial context issue
Hi,
Can you run your code under Java debugger and see what is going on inside ?
Just a step forward to troubleshoot.
-Arun
Can you run your code under Java debugger and see what is going on inside ?
Just a step forward to troubleshoot.
-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-31-2006 05:39 PM
тАО05-31-2006 05:39 PM
Re: java initial context issue
Arunvijai, thank you for the advice.
With debugger I've found that org.omg.CORBA.portable.RemarshalException
is thrown at com.sun.corba.se.internal.corba.ClientDelegate.invoke(). This cause infinite loop in com.sun.corba.se.internal.corba.ClientDelegate.is_a() as it is reinvoked when RemarshalException is caught:
is_a(...)
{
...
try{
...
invoke(...);
...
} catch (RemarshalException e) {
return is_a(obj, dest);
}
}
With debugger I've found that org.omg.CORBA.portable.RemarshalException
is thrown at com.sun.corba.se.internal.corba.ClientDelegate.invoke(). This cause infinite loop in com.sun.corba.se.internal.corba.ClientDelegate.is_a() as it is reinvoked when RemarshalException is caught:
is_a(...)
{
...
try{
...
invoke(...);
...
} catch (RemarshalException e) {
return is_a(obj, dest);
}
}
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP