On AIX WebSphere 4.0.x DirContext lookup takes 9 minutes 12 seconds to fail

On AIX WebSphere 4.0.x DirContext lookup() (IBM JRE 1.3.1 with Sun JNDI (com.sun.jndi.ldap.LdapCtxFactory)) takes 9 minutes 12 seconds to fail when LDAP server offline:
Code
private DirContext checkConnection (DirContext connection) throws REMException
connectionIsStale = false;
try
log.debug("MSPMSP - Attempting to do the connection.lookup()");
connection = (DirContext) connection.lookup ("");
log.debug("MSPMSP - Finished the connection.lookup()");
catch (NamingException e)
// Connection to LDAP server was lost.
// Try reconnecting.
connectionIsStale = true;
log.debug("MSPMSP - Encountered NamingException, connectionIsStale = " + connectionIsStale);
Trace info:
2003-11-24 15:37:49,995 [Servlet.Engine.Transports:24] DEBUG com.opennetwork.dsmart.util.OntLDAPConnection - MSPMSP - Attempting to do the connection.lookup()
2003-11-24 15:47:03,223 [Servlet.Engine.Transports:24] DEBUG com.opennetwork.dsmart.util.OntLDAPConnection - MSPMSP - Encountered NamingException, connectionIsStale = true
Netstat output:
bash-2.05b# netstat -a | grep 389;date
tcp4 0 69 psaix.dssupport..41239 ont1285.caas.com.389 ESTABLISHED
tcp4 0 0 psaix.dssupport..41238 ont1285.caas.com.389 ESTABLISHED
tcp4 0 0 psaix.dssupport..41145 ont1285.caas.com.389 ESTABLISHED
tcp4 0 0 psaix.dssupport..41130 ont1285.caas.com.389 ESTABLISHED
tcp4 0 0 psaix.dssupport..41128 ont1285.caas.com.389 ESTABLISHED
Mon Nov 24 15:47:03 EST 2003
bash-2.05b# netstat -a | grep 389;date
tcp4 0 0 psaix.dssupport..42602 ont1285.caas.com.389 SYN_SENT
tcp4 0 0 psaix.dssupport..41238 ont1285.caas.com.389 ESTABLISHED
tcp4 0 0 psaix.dssupport..41145 ont1285.caas.com.389 ESTABLISHED
tcp4 0 0 psaix.dssupport..41130 ont1285.caas.com.389 ESTABLISHED
tcp4 0 0 psaix.dssupport..41128 ont1285.caas.com.389 ESTABLISHED
Mon Nov 24 15:47:03 EST 2003
bash-2.05b# netstat -a | grep 389;date
tcp4 0 0 psaix.dssupport..42624 ont1158.caas.com.389 ESTABLISHED
tcp4 0 0 psaix.dssupport..41238 ont1285.caas.com.389 ESTABLISHED
tcp4 0 0 psaix.dssupport..41145 ont1285.caas.com.389 ESTABLISHED
tcp4 0 0 psaix.dssupport..41130 ont1285.caas.com.389 ESTABLISHED
tcp4 0 0 psaix.dssupport..41128 ont1285.caas.com.389 ESTABLISHED
Mon Nov 24 15:48:23 EST 2003
More details:
Here is some output from the AIX machine primary LDAP ont1285.caas.com, secondary LDAP ont1158.caas.com both using port 389:
It appears that on startup the 4 J2EE Applications initiate a connection to the LDAP ont1285.caas.com to read their configuration data. I then hit a few pages with primary still connected. At that point we have 5 ESTABLISHED connections to ont1158.caas.com.389. Then at 15:37:49 I hit a page with primary LDAP unplugged from network. At 15:47:03 the JNDI Lookup call returns (code snippet below). A new connection goes to SYN_SENT state for about a minute and a half, then a connection to the secondary is ESTABLISHED.
Any suggestions on what can cause this delay or another method to call to timeout quicker?
Thanks,
REM

While there isn't a timeout that can be made known to the JNDI/LDAP service provider, a timer can be
set by the application itself.
It might be useful to do something like below:
In your JNDI application you start the timer before the operation that need to timeout, for example:
class SimpleTimeKeeperTest {
public static void main(String args[]) throws Exception {
TimeKeeper.start(5000);
// operation that needs a timeout
while(true) {
Thread.currentThread().sleep(10000);
class TimeKeeper extends Thread {
long timeout; // in milli seconds
long timerStart;
Thread parent;
TimeKeeper(long timeout) {
parent = Thread.currentThread();
this.timeout = timeout;
this.start();
public static void start(long timeout) {
new TimeKeeper(timeout);
public void run() {
timerStart = System.currentTimeMillis();
long waitTime = timeout;
while (waitTime > 0) {
try {
this.sleep(waitTime);
} catch (InterruptedException ie) {
// ignore and continue
waitTime = timeout - (System.currentTimeMillis() - timerStart);
System.out.println(waitTime);
parent.interrupt();

Similar Messages

  • Error initializing LiveCycle ES3 on AIX, Websphere 7 with DB2 9.5

    Hello,
    I'm having a problem during configuration of LiveCycle ES3 on an AIX 6.1 with WebSphere 7.0.0.25 and DB2 9.5 on the same machine.
    I'm getting following error:
    com.adobe.livecycle.lcm.core.LCMException[ALC-LCM-000-000]: Failed on step 'Invoking component bootstrapper' for task 'Bootstrapping DocumentServiceContainer'
    ALC-TTN-103-000: Bootstrapping request failed on server.  Message from server:
    ALC-TTN-011-031: Bootstrapping failed for platform component [DocumentServiceContainer].  The wrapped exception's message
    reads:
    See nested exception; nested exception is: com.adobe.pof.schema.ObjectTypeNotFoundException: Object Type: dsc.proxy_permissions not
    found.
    Check application server logs for details.Bootstrapping Error: ALC-TTN-103-0000
            at com.adobe.livecycle.lcm.headless.HeadlessLCMImpl.bootstrapPlatform(HeadlessLCMImpl.java:4 00)
            at com.adobe.livecycle.lcm.headless.HeadlessLCMImpl.bootstrapPlatform(HeadlessLCMImpl.java:2 82)
            at com.adobe.livecycle.lcm.cli.InitializeLiveCycleCLI.executeCommandLineImpl(InitializeLiveC ycleCLI.java:81)
            at com.adobe.livecycle.lcm.cli.LCMCLI.execute(LCMCLI.java:299)
            at com.adobe.livecycle.lcm.cli.LCMCLI.main(LCMCLI.java:344)
    Caused by: com.adobe.livecycle.bootstrap.BootstrapException: ALC-TTN-103-000: Bootstrapping request failed on server.  Message from server:
    ALC-TTN-011-031: Bootstrapping failed for platform component [DocumentServiceContainer].  The wrapped exception's message
    reads:
    See nested exception; nested exception is: com.adobe.pof.schema.ObjectTypeNotFoundException: Object Type: dsc.proxy_permissions not
    found.
    Check application server logs for details.
            at com.adobe.livecycle.bootstrap.client.BootstrapRequestClient.analyzeResponse(BootstrapRequ estClient.java:152)
            at com.adobe.livecycle.bootstrap.client.BootstrapRequestClient.bootstrap(BootstrapRequestCli ent.java:63)
            at com.adobe.livecycle.bootstrap.client.BootstrapManager.executeStep(BootstrapManager.java:2 03)
            at com.adobe.livecycle.lcm.headless.HeadlessLCMImpl.bootstrapPlatform(HeadlessLCMImpl.java:3 93)
            ... 4 more
    I already searched within this forum, but i did not find a topic, wehere the solution has been helpful for me.
    So i wonder, if you have any idea to solve my problem.
    The server type on the WAS is Cluster.
    Thanks and best regards,
    Coopar8502

    > MOS-01109  Needed space on mountpoint /usr is 100000 KB, but got only 41736 KB.
    > /dev/hd2        1984.00     40.76   98%    42811    63% /usr
    The system says it needs 100 GB on /usr but you provide on 42.
    Markus

  • Web service proxy take ~4 minutes to detect connection problem in AIX!

    Dear All,
    i am developing a client application that consume web service , by jdeveloper 10.1.3.1.
    i found a problem, in AIX, that the web service proxy generated by jdeveloper take long time
    to detect connection problem to the server (e.g. server is down, network down, invalid
    ip address or port supplied).
    in ms window, if the proxy can't reach the server, it throw exception within seconds.
    but in ibm AIX, it take about 4 minutes !!! the time is too long until the exception is thrown.
    could anybody help me?
    is there something i can set to greatly shorten the hanging time when connection
    problem?
    thank you.

    nobody experience this problem?

  • Linux RMI lookup takes too long when DNS is not available

    I am running Java 6 on Linux and ran into the following problem (please bear with me, there is a lot of background info before the actual question). I have a Java program that uses RMI for IPC. The server binds to localhost and clients lookup on localhost. The following are code snippets for my server and client.
    // Server binding code
    registry = LocateRegistry.createRegistry(port);
    registry.rebind("SERVICE", new ServiceImpl());
    // Client lookup code
    Naming.lookup("rmi://localhost:" + port + "/SERVICE");As long as DNS works, this code runs just fine. It takes ~0.3s for the server to bind and ~0.4s for the client to lookup. If DNS is not available, it takes ~40s for the server to bind and ~60s for the client to lookup! The times for lookup do not change if I use "127.0.0.1" instead of "localhost".
    I have localhost defined in my /etc/hosts file and my /etc/nsswitch.conf file specifies that host lookups should use files before nameservers. By commenting out the localhost value in the /etc/hosts file, I have determined that eventually the value in /etc/hosts is used if needed (the server bind fails if DNS is not available and localhost is commented out).
    If the network goes down, someone messes up the /etc/resolv.conf file, or our nameservers go down, RMI binds and lookups for something as easy to resolve as localhost takes way too long.
    So my question boils down to: Is there any way I can bind and lookup RMI servers without using DNS or by using DNS after /etc/hosts lookup fails?

    I turned on logging. You can see here that when DNS is working everything runs fine.
    Nov 19, 2007 5:14:12 PM sun.rmi.transport.tcp.TCPTransport$ConnectionHandler run0
    FINER: RMI TCP Connection(10)-127.0.0.1: (port 1234) client using localhost:0
    Nov 19, 2007 5:14:12 PM sun.rmi.transport.tcp.TCPTransport handleMessages
    FINE: RMI TCP Connection(10)-127.0.0.1: (port 1234) op = 80
    Nov 19, 2007 5:14:12 PM sun.rmi.transport.StreamRemoteCall getInputStream
    FINER: RMI TCP Connection(10)-127.0.0.1: getting input stream
    Nov 19, 2007 5:14:12 PM sun.rmi.transport.Transport serviceCall
    FINER: RMI TCP Connection(10)-127.0.0.1: call dispatcher
    Nov 19, 2007 5:14:12 PM sun.rmi.server.UnicastServerRef logCall
    FINER: RMI TCP Connection(10)-127.0.0.1: [127.0.0.1: sun.rmi.registry.RegistryImpl[0:0:0, 0]: java.rmi.Remote lookup(java.lang.String)]
    Nov 19, 2007 5:14:12 PM sun.rmi.transport.StreamRemoteCall getOutputStream
    FINER: RMI TCP Connection(10)-127.0.0.1: getting output stream
    Nov 19, 2007 5:14:12 PM sun.rmi.transport.tcp.TCPTransport$ConnectionHandler run0
    FINE: RMI TCP Connection(11)-127.0.0.1: accepted socket from [127.0.0.1:37084]When DNS is not working, there is a 15 second timeout and 5 seconds to reconnect.
    Nov 19, 2007 5:16:03 PM sun.rmi.transport.tcp.TCPTransport$ConnectionHandler run0
    FINE: RMI TCP Connection(12)-127.0.0.1: accepted socket from [127.0.0.1:57328]
    Nov 19, 2007 5:16:03 PM sun.rmi.transport.tcp.TCPTransport$ConnectionHandler run0
    FINER: RMI TCP Connection(12)-127.0.0.1: (port 1234) suggesting 127.0.0.1:57328
    Nov 19, 2007 5:16:03 PM sun.rmi.transport.tcp.TCPTransport$ConnectionHandler run0
    FINER: RMI TCP Connection(12)-127.0.0.1: (port 1234) client using localhost:0
    Nov 19, 2007 5:16:03 PM sun.rmi.transport.tcp.TCPTransport handleMessages
    FINE: RMI TCP Connection(12)-127.0.0.1: (port 1234) op = 80
    Nov 19, 2007 5:16:03 PM sun.rmi.transport.StreamRemoteCall getInputStream
    FINER: RMI TCP Connection(12)-127.0.0.1: getting input stream
    Nov 19, 2007 5:16:03 PM sun.rmi.transport.Transport serviceCall
    FINER: RMI TCP Connection(12)-127.0.0.1: call dispatcher
    Nov 19, 2007 5:16:03 PM sun.rmi.server.UnicastServerRef logCall
    FINER: RMI TCP Connection(12)-127.0.0.1: [127.0.0.1: sun.rmi.registry.RegistryImpl[0:0:0, 0]: java.rmi.Remote lookup(java.lang.String)]
    Nov 19, 2007 5:16:03 PM sun.rmi.transport.StreamRemoteCall getOutputStream
    FINER: RMI TCP Connection(12)-127.0.0.1: getting output stream
    Nov 19, 2007 5:16:18 PM sun.rmi.transport.tcp.TCPTransport handleMessages
    FINE: RMI TCP Connection(12)-127.0.0.1: (port 1234) connection closed
    Nov 19, 2007 5:16:18 PM sun.rmi.transport.tcp.TCPConnection close
    FINE: RMI TCP Connection(12)-127.0.0.1: close connection
    Nov 19, 2007 5:16:23 PM sun.rmi.transport.tcp.TCPTransport$ConnectionHandler run0
    FINE: RMI TCP Connection(13)-127.0.0.1: accepted socket from [127.0.0.1:37087]I tried specifying different timeout values using different RMI properties. Nothing seems to affect it except setting sun.rmi.transport.tcp.readTimeout to a value less than 15 seconds (which is not practical).
    Any ideas why getting the output stream would timeout?

  • EJB lookup on Remote Server or different domain fails

    Hi,
    I am having two different domain (domain1,domain2) respectvely. My ABC.ear j2eee application is deployed on domain2 and its iiop port is 33703.In domain1 i have xyz.war (web application) and it's IIOP port is 3700 .In xyz.war i am having CallEJB.jsp file.In this Jsp file i want to lookup an EJB Service called PaymentEJB(JNDI Name is ejb/PaymentEJB).
    The code is below
    InitialContext context=new InitialContext();
    Object objRef=context.lookup("corbaname:iiop:andaman:33703#ejb/PaymentEJB");
    I am getting the following error.
    [#|2005-12-14T16:42:03.422+0530|SEVERE|sun-appserver-pe8.1_02|javax.enterprise.resource.corba._DEFAULT_.rpc.transport|_ThreadID=11;|"IOP00410216: (COMM_FAILURE) Unable to create IIOP listener on the specified host/port: all interfaces/3700"
    org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 216 completed: No
    at com.sun.corba.ee.impl.logging.ORBUtilSystemException.createListenerFailed(ORBUtilSystemException.java:2661)
    My doubt is
    1.While starting domain1 and domain2 iiop listeners are started on the port 3700 and 33703.in that case why EJB lookup tries to create listener on one more time.
    2.I am looking the 33703 port only.but it tries to create port on 3700 why?
    3.It was working till JES2005Q1.Is there any patch i need to install? or i need to change anything in my code.
    I am frustrated with this error for past one week.I will be happy if some body will give me the peace of mind(thru some solution).

    Hi
    I found the solution for this issue.
    To lookup the EJB applications in web component,we should not set any thing in the Initial Context.i.e the lookup should be
    InitialContext initContext=new InitialContext();
    Object objref = initContext.lookup("java:comp/env/ejb/"+ejbName_);
    This will get you the Home object of the EJB you are looking.
    In your web.xml you should have the entry like below.(Just replace the ejbname which you are looking for)
    <ejb-ref>
    <ejb-ref-name>ejb/GetAssertionEJB</ejb-ref-name>
    <ejb-ref-type>Session</ejb-ref-type>
    <home>com.ssertion.GetAssertionHome</home>
    <remote>com.assertion.GetAssertionRemote</remote>
    </ejb-ref>
    In your sun-wb.xml,you should have the entry like below(Just replace the ejbname which you are looking for)
    <ejb-ref>
    <ejb-ref-name>ejb/GetAssertionEJB</ejb-ref-name>
    <jndi-name>corbaname:iiop:<hostname>:<iiopport>#ejb/GetAssertionEJB</jndi-name>
    </ejb-ref>
    Hope this works.

  • JNDI lookup from proxied applet is slow

    Hi,
    I am doing a t3s lookup for an EJB from an applet. The lookup is fairly fast (<
    1 sec) if the browser is
    setup to not use an HTTP proxy server. However, if the browser is setup to go
    via a proxy server, the
    t3s lookup takes upwards of 30 seconds.
    Running the Weblogic server with -Dweblogic.system.enableReverseDNSLookups=false
    makes
    no difference.
    I am using WLS5.1SP9, and Netscape 4.7 and IE5 browsers.
    Any suggestions, please?
    Thanks
    Ravi

    Your File-system Object Store should be in a place
    accessible by your client application. Then you can
    specify JNDI properties
    java.naming.factory.initial
    java.naming.provider.url
    for the initial context. There are examples in
    <install-directory>/examples/jms directory.
    The ConnectionFactory object you created should
    have broker hostname and port (if not default)
    specified.
    amy

  • Firewall causes slow mDNS (Bonjour) Lookups

    I'm planning to upgrade our company's tiger server to leopard soon and for testing purposes I'm running Leopard server (10.5.5) on another machine. I've worked out most of the issues except for one major one.
    mDNS (Bonjour) lookups take about 60-90 seconds to resolve when the server's firewall is running. This is the same problem across lookups for any service (SSH via terminal, web, AFP). I don't plan to use mDNS on our network as the server will be running DNS for our LAN, but Time Machine backups always connect to the AFP share using the mDNS name rather than the server's Fully Qualified Domain Name. When this lookup takes such a long time it will more or less freeze the client system during this time.
    Client machines aren't running firewalls locally.
    This happens with both tiger and leopard clients.
    I have tried setting the firewall to allow all connections from "any" to "any" but it still doesn't work.
    I am not running DNS on the server but I have tried turning it on with still no luck.
    Here are the results from running "sudo ipfw list":
    00001 allow udp from any 626 to any dst-port 626
    01000 allow ip from any to any via lo0
    01010 deny log logamount 1000 ip from any to 127.0.0.0/8
    01020 deny log logamount 1000 ip from 224.0.0.0/4 to any in
    12300 allow tcp from any to any established
    12301 allow tcp from any to any out
    12302 allow udp from any to any out keep-state
    12303 allow tcp from any to any dst-port 53 out keep-state
    12303 allow udp from any to any dst-port 53 out keep-state
    12304 allow udp from any to any in frag
    12305 allow tcp from any to any dst-port 311
    12306 allow tcp from any to any dst-port 625
    12307 allow udp from any to any dst-port 626
    12308 allow icmp from any to any icmptypes 8
    12309 allow icmp from any to any icmptypes 0
    12310 allow igmp from any to any
    12311 allow esp from any to any
    12312 allow gre from any to any
    12313 allow udp from any to any dst-port 4500
    12314 allow ip from 192.168.15.0/24 to any via en0 keep-state
    12314 allow ip from 192.168.16.0/24 to any via en0 keep-state
    12315 allow udp from any 68 to any dst-port 67 via en0
    65534 deny log logamount 1000 ip from any to any
    65535 allow ip from any to any
    Note that this should block most services but allow machines on our internal subnets (192.168.15.0 and 192.168.16.0) to connect.
    Any help or advice will be greatly appreciated.
    Thanks.

    I have independently confirmed Baerner's results. Last week I installed ethereal and Wireshark from the fink project and traced the IPP data packets between my desktop client and the print server. Bonjour is definitely using IPV6 in Leopard for printing services.
    Reading the Wikipedia page, http://en.wikipedia.org/wiki/IPv6#Special_addresses, I used the ip6fw utility to add the firewall rule:
    *01101 allow ipv6 from fe80::/10 to fe80::/10*
    which allows link-local addresses to communicate with the server.
    Printing on the server works well with the new firewall rule. I just need to find out how to get the Server Admin tool to set the rule from the FireWall GUI.

  • Performance concern with directory server implementation

    performance concern with directory server implementation
    I first posted this at metalink forum, and was suggested to post it here instead.
    Hi,
    I'd like to get any feedback regarding performance of oracle directory server implementation. Below is what I copy&patested from 9i Net Services Administrator's Guide, I found no 'directory server vendor documentation', so anything regarding this is welcome too.
    Performance
    Connect identifiers are stored in a directory server for all clients to access.
    Depending on the number of clients, there can be a significant load on a directory
    server.
    During a connect identifier lookup, a name is searched under a specific Oracle
    Context. Because of the scope of the lookup, you probably want users to experience
    relatively quick performance so that the database connect time is not affected. Users
    may begin to notice slow connect times if lookups takes more than one second.
    You can resolve performance problems changing the network topology or
    implementing replication.
    See Also: Directory server vendor documentation for details on
    resolving performance issues
    Thanks.
    Shannon

    Shannon,
    you can find some tuning advises in the following
    a) OiD Capacity Planning Considerations
    http://download-west.oracle.com/docs/cd/B10501_01/network.920/a96574/cap_plan.htm#1030019
    b) Tuning Considerations
    http://download-west.oracle.com/docs/cd/B10501_01/network.920/a96574/tuning.htm#999468
    c) oracle net services
    http://download-west.oracle.com/docs/cd/B10501_01/network.920/a96579/products.htm#1005697
    you should start with a) to get an overview what to be aware of
    --Olaf

  • Why is the first lookup() relatively slow?

    Hello hello,
    I am doing load testing on an LDAP server right now. The first call to lookup() is an order of magnitude slower that subsequent lookup() calls over the same Context instance. Why?
    I create a few instances of Context using Sun's InitialContext factory. I loop through a few lookup() requests over each of those Contexts. The first lookup takes 800 milliseconds, and all subsequent lookups take less than 20 milliseconds.
    I believe that this has nothing to do with socket operations because I don't start the lookup thread until after its Context has been created. I've also checked the BER buffers sent and received by the LDAP provider, and verified that the security authentication is complete before I start timing the lookup.
    Finally, I've also ensured that server-side caching does not cause subsequent requests to speed up.
    This might have something to do with the operation of the particular LDAP server I'm using, OpenLDAP.
    Has anybody else noticed similar behavior by a Context?

    Im also having a similar problem. It takes about 1.2 seconds to create the InitialDirContext object.
    DirContext ctx = new InitialDirContext(env); //takes about 1.2 sec
    Im using eDirectory (Novell Directory Service). Im using 'simple' authentication and Im suppling the ID and password in the environment variables.
    Did you find out anything?

  • Problem connecting weblogic OSB with IBM websphere via foreign JMS

    Hi All,
    I am trying to setup Foreign JMS. My configuration doesn’t work.
    Could you please let me know if I am missing anything .
    All my configuration details are done as specified in this link http://www.oracle.com/technology/products/integration/service-bus/docs/osb-websphere-whitepaper.pdf
    Here is what I did.
    In OSB sbconsole
    OSB business Service ENDPoint URL jms://webspherehost:9082/sampleQueuemanager/sampleQueue
    In websphere
    Created a queue connection factory and a queue from the webspehere administrator console.
    Modified JSMAdmin.config to enable the following…/Java/bin/JMSAdmin.config.
    INITIAL_CONTEXT_FACTORY=com.sun.jndi.fscontext.RefFSContextFactory
    PROVIDER_URL=file:/C:/JNDI-Directory
    Ran JSMAdmin.bat to bind the JNDI
    def qcf(sampleQueuemanager) qmanager(QMGR) HOSTNAME(webspherehost) PORT(1327) TRANSPORT(CLIENT)
    def Q(sampleQueue) queue(sampleQueue) qmanager(QMGR) PERSISTENCE(PERS)
    InitCtx> dis ctx
    JMSADM4089 InitCtx
    .bindings java.io.File
    bck_.bindings java.io.File
    a sampleQueuemanager com.ibm.mq.jms.MQQueueConnectionFactory
    a sampleQueue com.ibm.mq.jms.MQQueue
    4 Object(s)
    0 Context(s)
    4 Binding(s), 2 Administered
    In weblogic admin console
    Created foreign JMS, destination and connection factory as mentioned in the following link.
    http://download.oracle.com/docs/cd/E12840_01/wls/docs103/ConsoleHelp/taskhelp/jms_modules/foreign_servers/CreateForeignConnectionFactories.html
    When I execute business service from OSB sbconsole, this is what I get.
    +The invocation resulted in an error: [JMSPool:169803]JNDI lookup of the JMS connection factory sampleQueuemanager failed: javax.naming.CommunicationException [Root exception is weblogic.socket.UnrecoverableConnectException: [Login failed for an unknown reason: HTTP/1.1 400 Bad Request]].+
    Thanks
    siva

    Little confusing. Are we not supposed to use osb host name and port along with foreign connection factory created in weblogic for OSB BS?.
    You said: jms://webspherehost:9082/sampleQueuemanager/sampleQueue
    We have to jms://osbhost:port/ForeignQueueManagerInWeblogic/ForeignQueueInWeblogic
    Manoj

  • Lookup JMS resource from server level failed, but other level will success

    I have a jms resource in websphere the full jndi is
    cell/nodes/sampleNode/servers/sampleServer/jms/foundation/SimpleQueue.TCFIf I use
    Context jndiContext = (Context)jndiInitialContext.lookup("cell/nodes/sampleNode/servers/sampleServer/jms/foundation/SimpleQueue.TCF");No problem
    but if use
    Context jndiContext = (Context)jndiInitialContext.lookup("cell/nodes/sampleNode/servers/sampleServer");
    (TopicConnectionFactory)jndiContext.lookup("jms/foundation/SimpleQueue.TCF");This will fail with exception
    0000000a  W UOW=3-fc00fc-21429626:localhost source=com.ibm.ws.naming.util.Helpers org=IBM prod=WebSphere component=Application Server thread=[P=500142:O=0:CT]
              NMSV0610I: A NamingException is being thrown from a javax.naming.Context implementation. Details follow:
    Context implementation: com.ibm.ws.naming.jndicos.CNContextImpl
    Context method: lookupExt
    Target name: jms/foundation/SimpleQueue.TCF
    Other data: ""
    Exception stack trace: javax.naming.NamingException: Error during resolve [Root exception is org.omg.CORBA.INTERNAL: initial and forwarded IOR inaccessible  vmcid: IBM  minor code: 58C  completed: No]
            at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1939)
            at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1862)
            at com.ibm.ws.naming.jndicos.CNContextImpl.lookupExt(CNContextImpl.java:1552)
            at com.ibm.ws.naming.jndicos.CNContextImpl.lookup(CNContextImpl.java:1354)
            at Main.main(Main.java:98)
    Caused by: org.omg.CORBA.INTERNAL: initial and forwarded IOR inaccessible  vmcid: IBM  minor code: 58C  completed: No
            at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1213)
            at com.ibm.CORBA.iiop.ClientDelegate.createRequest(ClientDelegate.java:1320)
            at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1109)Even I change the lookup level to other like
    Context jndiContext = (Context)jndiInitialContext.lookup("cell/nodes/sampleNode/servers");
    (TopicConnectionFactory)jndiContext.lookup("sampleServer/jms/foundation/SimpleQueue.TCF");It will success, only from server level, exception happened.
    Any idea?
    Thank you.

    I haven't tried this before, but I think you need to tell Apache to tunnel t3 and/or iiop explicitly in the config:
    http://e-docs.bea.com/wls/docs103/plugins/apache.html#wp124662
    Which client jar are you using? The thin client or the wlfullclient.jar/weblogic.jar?
    If you read this section of the JMS thin client docs, it discusses how thin client t3 urls are transparently switched to iiop and http urls use iiop tunneling:
    http://e-docs.bea.com/wls/docs103/client/jms_thin_client.html#wp1026979

  • Memory usage problem on AIX 7.1

    Hi,
    We are running Oracle 11GR2 EE on AIX 7.1 and keep getting alerts on the pgchecks (memory paging).
    The alerts are coming from another system monitoring tool (Hobbit), but our sys admins are telling us it is because we are overallocating memory.
    In our case, we have an 8G SGA for the only database.
    Then, we are running grid and ASM.
    How can I check the actual (real) memory usage by individual processes of our Oracle database, our emagent (OMS agent), and for our ASM. In our case, we have 32G of Real Memory installed, and we should not be having a memory paging issue.
    For the Oracle database, it is set for 8G.
    NAME                                 TYPE        VALUE
    lock_sga                             boolean     FALSE
    pga_aggregate_target                 big integer 0
    pre_page_sga                         boolean     FALSE
    sga_max_size                         big integer 8480M
    sga_target                           big integer 0For our ASM instance, it is set for 270M
    SQL> sho sga
    NAME                                 TYPE        VALUE
    lock_sga                             boolean     FALSE
    pga_aggregate_target                 big integer 0
    sga_max_size                         big integer 272M
    sga_target                           big integer 0

    do as below (vmstat takes 2 minutes to complete)
    bcm@bcm-laptop:~$ vmstat 6 20
    procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu----
    r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa
    0  0      0 1347636  81396 1592120    0    0   264    22  382  651  8  3 84  5
    0  0      0 1347664  81404 1592144    0    0     0    13  515 1028  4  1 95  0
    0  0      0 1353136  81412 1592144    0    0     0    14  507 1021  3  1 95  0
    0  0      0 1353012  81420 1592144    0    0     0    23  523 1033  3  1 95  0
    0  0      0 1353044  81428 1592144    0    0     0    13  513 1026  3  1 96  0
    0  0      0 1353044  81436 1592144    0    0     0    15  517 1045  3  2 95  0
    0  0      0 1352920  81444 1592144    0    0     0    15  505 1012  3  1 96  0
    1  0      0 1347448  81452 1592156    0    0     1    21  521 1038  4  2 94  0
    0  0      0 1347448  81460 1592156    0    0     0    28  513 1030  3  2 95  0
    0  0      0 1347448  81468 1592180    0    0     1    21  529 1053  4  1 95  0
    0  0      0 1347200  81484 1592176    0    0     0    39  530 1067  3  2 95  0
    1  0      0 1347200  81492 1592172    0    0     0    14  530 1058  3  1 96  0
    0  0      0 1352796  81500 1592172    0    0     0    17  514 1034  3  2 95  0
    0  0      0 1352796  81508 1592180    0    0     0    21  516 1049  6  1 92  0
    0  0      0 1352764  81516 1592180    0    0     0    15  506 1024  2  1 95  1
    0  0      0 1352252  81524 1592180    0    0     0    15  563 1090  3  2 95  0
    0  0      0 1351836  81532 1592180    0    0     0    15  550 1066  4  1 94  0
    0  0      0 1346768  81540 1592200    0    0     1    18  547 1111  4  2 94  0
    1  0      0 1346152  81548 1592204    0    0     0    69  524 1059  3  2 94  0
    0  0      0 1346472  81556 1592244    0    0     1    17  498 1012  2  1 96  0

  • Error running Organization Lookup Recon in OIM 11g R2 with Active Directory

    Hi all,
    I have an implementation of OIM 11g R2, with an Active Directory 11.1.1.5.0 connecting to an instance of Active Directory on Windows Server 2008. I am trying to run the "Active Directory Organization Lookup Reconciliation" scheduled task, but the job fails with this error:
    oracle.iam.connectors.icfcommon.exceptions.IntegrationException: Connector ConnectorKey( bundleName=ActiveDirectory.Connector bundleVersion=1.1.0.6380 connectorName=Org.IdentityConnectors.ActiveDirectory.ActiveDirectoryConnector ) not found
    This is the full stack trace from the oim_domain.log file:
    oracle.iam.connectors.icfcommon.exceptions.IntegrationException: Connector ConnectorKey( bundleName=ActiveDirectory.Connector bundleVersion=1.1.0.6380 connectorName=Org.IdentityConnectors.ActiveDirectory.ActiveDirectoryConnector ) not found
    at oracle.iam.connectors.icfcommon.ConnectorFactory.createConnectorFacade(ConnectorFactory.java:176)
    at oracle.iam.connectors.icfcommon.recon.AbstractReconTask.init(AbstractReconTask.java:115)
    at com.thortech.xl.scheduler.tasks.SchedulerBaseTask.execute(SchedulerBaseTask.java:382)
    at oracle.iam.scheduler.vo.TaskSupport$1.processWithoutResult(TaskSupport.java:135)
    at oracle.iam.platform.tx.OIMTransactionCallbackWithoutResult.process(OIMTransactionCallbackWithoutResult.java:9)
    at oracle.iam.platform.tx.OIMTransactionCallback.doInTransaction(OIMTransactionCallback.java:13)
    at oracle.iam.platform.tx.OIMTransactionCallback.doInTransaction(OIMTransactionCallback.java:6)
    at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:128)
    at oracle.iam.platform.tx.OIMTransactionManager.execute(OIMTransactionManager.java:22)
    at oracle.iam.scheduler.vo.TaskSupport.executeJob(TaskSupport.java:116)
    at sun.reflect.GeneratedMethodAccessor739.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at oracle.iam.scheduler.impl.quartz.QuartzJob$TaskExecutionAction.run(QuartzJob.java:266)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.security.Security.runAs(Security.java:41)
    at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs(weblogicLoginSession.java:52)
    at oracle.iam.scheduler.impl.quartz.QuartzJob.execute(QuartzJob.java:75)
    at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
    The Connector Server is installed on the AD instance, and the key has been set, and used appropriately in the Active Directory Connector Server IT Resource in OIM.
    Any advice on how to resolve this error or on any possible causes would be much appreciated, thank you.

    From the installation media, copy and extract contents of the bundle/ActiveDirectory.Connector-1.1.0.6380.zip file to the CONNECTOR_SERVER_HOME directory
    Refer http://docs.oracle.com/cd/E22999_01/doc.111/e20347/deploy.htm#CHDDJGIG

  • Rmi remote reference lookup very slow in web start application

    I have a little problem with the RMI communication in a web start test application.
    It is a very simple program in which the client calls a remote object that returns a String.
    Everything seems to be working fine when i'm running/debugging the client app in eclipse, but when i package my client project into a jar file and run it as a web start application (i'm providing the jnlp on a local webserver) the remote reference lookup takes about 15 seconds.
    basically, what my client does is this:
    Registry registry = LocateRegistry.getRegistry(address);
    ServerTransaction st= (ServerTransaction) registry.lookup(name);
    String result = st.test();
    The server code looks like this:
    String name = "ServerTransaction";
    ServerTransaction engine = new DefaultServerTransaction();
    ServerTransaction stub = (ServerTransaction) UnicastRemoteObject.exportObject(engine, 0);
    Registry registry = LocateRegistry.createRegistry(Registry.REGISTRY_PORT);
    registry.rebind(name, stub);
    The server runs as a normal stand alone java application on my local machine as well.
    And here the content of the jnlp file for the client application:
    <resources>
         <jar href="WSTest.jar"/>
         <jar href="WSTestServer.jar"/>
         <j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se"/>
         <property name="serverAddress" value="127.0.0.1" />
    </resources>
    <security>
         <all-permissions/>
    </security>
    <application-desc main-class="test.WSTest"/>
    As i said, the whole thing works when run as a normal java application as well as with web start, with the difference that the remote reference lookup takes about 15 seconds with web start.
    Can anyone tell me how i could go about this?

    Meanwhile, i tried the same thing at home on my xp machine (i use vista at work), and even though my test at home basically does the same thing (invoking a simple remote method that just returns "hello world") it worked pretty fast, contary to the 15 second hang on vista.
    So i can't really say where the problem is...
    I also found these two rmi properties
    sun.rmi.transport.connectionTimeout (1.1.6 and later)
    The value of this property represents the period (in milliseconds) for which socket connections may reside in an "unused" state, before the Java RMI runtime will allow those connections to be freed (closed). The default value is 15000 milliseconds (15 seconds).
    and
    sun.rmi.transport.proxy.connectTimeout (1.1 and later)
    The value of this property represents the maximum length of time (in milliseconds) that the Java RMI runtime will wait for a connection attempt (createSocket) to complete, before attempting to contact the server using HTTP. This property is only used when the http.proxyHost property is set and the value of java.rmi.server.disableHttp is false. The default value is 15000 milliseconds (15 seconds).
    Hoping it would help (totally clueless) i tried to set these as system properties via System.setProperty(...) to a lower value (if that even works this was - please correct me if i am totally wrong here) but it didn't help.

  • 8.1 sp2 very slow on AIX 5.2

    Hi,
    I am new to this so probably I am missing something simple, however I have read many manuals and can not figure out what is wrong with my setup.
    For last few years we were using Apache as web server, everything worked great.
    Now recently I installed Weblogic 8.1SP2 on same server AIX (5.2).
    Weblogic is slow(takes few seconds to display page) while Apache takes no time, so I placed same sample file on each webserver to test download speed
    My findings are as follows
         Download from Apache speed is average 800KB/sec
         Download from Weblogic speed is average 35KB/sec
    It looks like Weblogic is much slower, test were done from same server and same workstation.
    Sever is not busy at all. There is only one user connected to it, me. Using quest tool I see nothing wrong with Apache. Sever is not buys but download is very slow. I have tested some workstations as well and it appear all windows 2000 are slow accessing Weblogic webserver, but I found couple windows XP workstations that were having no problem downloading this file from Weblogic with average speed 800KB/sec.
    Please let me know if you have any suggestion how to fix it
    Where to look for a problem, is it workstation or webserver configuration issue.
    Aix server itself has enough resources to run it.
    Any suggestions are welcome. Thank you

    Thank you for your response, I have traced today packets that are being exchanged between window2000 workstation and each of webservers. Base on my finding I see
    Following pattern when downloading form Weblogic 8.1
    source      dest      length     summary     time
    WLS     workstation     1514     ACK     14.00.00.00
    WLS     workstation     1514     ACK     14.00.00.00
    workstation     WLS     66     ACK     14.00.00.00
    WLS     workstation     1242     PSH ACK     14:00.00.00
    workstation     WLS     66     ACK     14:00.00.160
    WLS     workstation     1514     ACK     14:00.00.160
    WLS     workstation     1514     ACK     14:00.00.160
    workstation     WLS     66     ACK     14:00.00.160
    WLS     workstation     1242     PSH ACK     14:00.00.160
    workstation     WLS     66     ACK     14:00.00.300
    WLS     workstation     1514     ACK     14:00.00.300
    WLS     workstation     1514     ACK     14:00.00.300
    workstation     WLS     66     ACK     14:00.00.300
    WLS     workstation     1242     PSH ACK     14:00.00.300
    workstation     WLS     66     ACK     14:00.00.480
    but when tracing download from Apache I have
    no delay download is very fast (~600 packes a sec)and pattern is
    source     dest      length
    WLS     workstation     1514     
    WLS     workstation     1514     
    workstation     WLS     66     
    WLS     workstation     1514     
    WLS     workstation     1514     
    workstation     WLS     66     
    So I see WLS sends 2 regular packets, workstation acknowledge then, than WLS sends only one packed of size 1242 and than does nothing,
    Workstation waits ~200ms (as it should)and sends acknowledge to WLS and at that point WLS sends 2 reg packages and process repeat itself. I found how can I reduce this wait to ~100ms on workstation, but that is not solution for my problem. Does any one have any suggestions what is wrong here and how can I fix it on server or workstation level. Why WLS doesn't sends 2 packets each time.
    Thank you,

Maybe you are looking for

  • CONTROL OF SERVICE PO

    Hi, We have one problem. When a Service PR is generated it has 1 AU at the header level qty where as it as service line item at the Service level with each service item having some qty. Now once this PR is adopted to create the PO, if user changes th

  • Error Msg -A Low-level exception occurred in: Adobe Player

    I have CS6 installed, all the latest patches, etc. It's been working fine for months.In the last week Pr is unable to playback all of my footage (Native 5D mark III h.246 and Canon xf305 footage). Whether it is on the timeline or in the source panel.

  • Keep getting fatal error message when i try to load itunes

    everytime i try and load the itunes program onto my computer i keep getting the message: could not gain access to HKEYLOCALMACHINE\Software\Classes\.cdda\OpenWithProgides key, please make sure you have access to this key and then try again.. now try

  • Lens or Camera first? Lens suggestions?

    I am looking to jump into the DSLR market.  I am upgrading from a SX10 IS point and shoot which I use fairly exclusively in manual settings.  I am looking to get into many different types of photography including: landscape, time lapse, star trail, a

  • It says I already have flash player.

    But it's not listed in my computer.