users@glassfish.java.net

glassfish remote connection error

From: <glassfish_at_javadesktop.org>
Date: Wed, 01 Jul 2009 06:02:45 PDT

Hi,
I have a client application which runs under Sun GlassFish Enterprise Server v2.1 (9.1.1) (build b60e-fcs).
It works fine when a locally(inside the app-server) call it.
Afterwards i gave a real ip to app-server. When running from any remote computer i am having this exception. Its been three days still struggling with same story. If you have any idea or solution please post anyway because from now on i dont have any other idea.
thank you guys so much.

JNLP JREDesc in Component ignored: <<MY REAL IP>>:80/__JWSappclients/__appserver/${appserver.mainext.jnlp.filename}
Reading certificates from 11 <<MY REAL IP>>:80/__JWSappclients/__appserver/aslib/appserv-rt.jar | C:\Documents and Settings\Administrator\Application Data\Sun\Java\Deployment\cache\6.0\26\5c83ed9a-7cc8a6c7.idx
01.Tem.2009 13:39:54 com.sun.enterprise.appclient.MainWithModuleSupport prepareSecurity
INFO: Security Manager is ON.
01.Tem.2009 13:39:54 com.sun.enterprise.appclient.MainWithModuleSupport setTargetServerProperties
INFO: ACC001:Using ClientContainer file: [C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\1\sunacc7919229612886956988.xml].
01.Tem.2009 13:39:54 com.sun.enterprise.appclient.MainWithModuleSupport <init>
INFO: ACC024: IIOP endpoint(s) = <<MY REAL IP>>:3700
01.Tem.2009 13:40:20 com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl <init>
WARNING: "IOP00410201: (COMM_FAILURE) Connection failure: socketType: IIOP_CLEAR_TEXT; hostname: <<MY REAL IP>>; port: 3700"
org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
        at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2690)
        at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2711)
        at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:261)
        at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:274)
        at com.sun.corba.ee.impl.transport.SocketOrChannelContactInfoImpl.createConnection(SocketOrChannelContactInfoImpl.java:130)
        at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.beginRequest(CorbaClientRequestDispatcherImpl.java:192)
        at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.request(CorbaClientDelegateImpl.java:181)
        at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.is_a(CorbaClientDelegateImpl.java:325)
        at org.omg.CORBA.portable.ObjectImpl._is_a(Unknown Source)
        at org.omg.CosNaming.NamingContextHelper.narrow(Unknown Source)
        at com.sun.enterprise.naming.SerialContext.narrowProvider(SerialContext.java:134)
        at com.sun.enterprise.naming.SerialContext.getCachedProvider(SerialContext.java:259)
        at com.sun.enterprise.naming.SerialContext.getRemoteProvider(SerialContext.java:204)
        at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.java:159)
        at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:409)
        at javax.naming.InitialContext.lookup(Unknown Source)
        at com.sun.enterprise.util.Utility.lookupObject(Utility.java:145)
        at com.sun.enterprise.ServerConfiguration.<init>(ServerConfiguration.java:96)
        at com.sun.enterprise.ServerConfiguration.getConfiguration(ServerConfiguration.java:80)
        at com.sun.enterprise.distributedtx.J2EETransactionManagerImpl.createTransactionManager(J2EETransactionManagerImpl.java:294)
        at com.sun.enterprise.appclient.AppContainer.initializeNaming(AppContainer.java:207)
        at com.sun.enterprise.appclient.MainWithModuleSupport.<init>(MainWithModuleSupport.java:364)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at com.sun.enterprise.appclient.jws.boot.JWSACCMain.run(JWSACCMain.java:221)
        at com.sun.enterprise.appclient.jws.boot.JWSACCMain.main(JWSACCMain.java:182)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.sun.javaws.Launcher.executeApplication(Unknown Source)
        at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
        at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
        at com.sun.javaws.Launcher.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.RuntimeException: java.net.ConnectException: Connection timed out: connect
        at com.sun.enterprise.iiop.IIOPSSLSocketFactory.createSocket(IIOPSSLSocketFactory.java:347)
        at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:244)
        ... 34 more
Caused by: java.net.ConnectException: Connection timed out: connect
        at sun.nio.ch.Net.connect(Native Method)
        at sun.nio.ch.SocketChannelImpl.connect(Unknown Source)
        at com.sun.corba.ee.impl.orbutil.ORBUtility.openSocketChannel(ORBUtility.java:105)
        at com.sun.enterprise.iiop.IIOPSSLSocketFactory.createSocket(IIOPSSLSocketFactory.java:332)
        ... 35 more




this is sun-acc.xml file

-----------------------------------------------------------
<client-container>
  <target-server name="localhost" address="localhost" port="3700"/>
  <log-service file="" level="WARNING"/>
  <message-security-config auth-layer="SOAP">
    <!-- turned off by default -->
    <provider-config class-name="com.sun.xml.wss.provider.ClientSecurityAuthModule" provider-id="XWS_ClientProvider" provider-type="client">
      <request-policy auth-source="content"/>
      <response-policy auth-source="content"/>
      <property name="encryption.key.alias" value="s1as"/>
      <property name="signature.key.alias" value="s1as"/>
      <property name="dynamic.username.password" value="false"/>
      <property name="debug" value="false"/>
    </provider-config>
    <provider-config class-name="com.sun.xml.wss.provider.ClientSecurityAuthModule" provider-id="ClientProvider" provider-type="client">
      <request-policy auth-source="content"/>
      <response-policy auth-source="content"/>
      <property name="encryption.key.alias" value="s1as"/>
      <property name="signature.key.alias" value="s1as"/>
      <property name="dynamic.username.password" value="false"/>
      <property name="debug" value="false"/>
      <property name="security.config" value="C:/Program Files/glassfish-v2.1/lib/appclient/wss-client-config-1.0.xml"/>
    </provider-config>
  </message-security-config>
</client-container>
-----------------------------------------------------------------------



this my connection pool properties from domain.xml

-----------------------------------------------------------------------
<jdbc-connection-pool allow-non-component-callers="false" associate-with-thread="false" connection-creation-retry-attempts="0" connection-creation-retry-interval-in-seconds="10" connection-leak-reclaim="false" connection-leak-timeout-in-seconds="0" connection-validation-method="auto-commit" datasource-classname="oracle.jdbc.xa.client.OracleXADataSource" fail-all-connections="false" idle-timeout-in-seconds="300" is-connection-validation-required="false" is-isolation-level-guaranteed="true" lazy-connection-association="false" lazy-connection-enlistment="false" match-connections="false" max-connection-usage-count="0" max-pool-size="50" max-wait-time-in-millis="60000" name="MYPool" non-transactional-connections="false" pool-resize-quantity="5" res-type="javax.sql.XADataSource" statement-timeout-in-seconds="-1" steady-pool-size="2" validate-atmost-once-period-in-seconds="0" wrap-jdbc-objects="false">
      <property name="NetworkProtocol" value="tcp"/>
      <property name="DatabaseName" value="orclEN"/>
      <property name="Password" value="<<MY PASSWORD>>"/>
      <property name="User" value="<<MY USERNAME>>"/>
      <property name="ServiceName" value="orclEN"/>
      <property name="PortNumber" value="1521"/>
      <property name="ServerName" value="<<MY DATABASE SERVER IP>>"/>
      <property name="URL" value="jdbc:oracle:thin:@<<MY DATABASE SERVER IP>>:1521:orclEN"/>
    </jdbc-connection-pool>


-------------------------------------------------------------------------



i dont know if it helps but i put corba log level to finest and this is a part of server.log file


-------------------------------------------------------------------------------

[#|2009-07-01T15:50:42.089+0300|FINE|sun-appserver2.1|javax.enterprise.resource.corba.ee._CORBA_.rpc.transport|_ThreadID=19;_ThreadName=Timer-2;ClassName=com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl;MethodName=createWorkerThreadHelper;Thread[p: thread-pool-1; w: 9,5,main];java.net.URLClassLoader_at_10ca208;_RequestID=df1ef3c9-4628-4865-880b-cbbc7421ba57;|"IOP00710304: (INTERNAL) Worker thread Thread[p: thread-pool-1; w: 9,5,main] has been created with ClassLoader java.net.URLClassLoader_at_10ca208"
org.omg.CORBA.INTERNAL: vmcid: SUN minor code: 304 completed: No
        at com.sun.corba.ee.impl.logging.ORBUtilSystemException.workerThreadCreated(ORBUtilSystemException.java:7492)
        at com.sun.corba.ee.impl.logging.ORBUtilSystemException.workerThreadCreated(ORBUtilSystemException.java:7516)
        at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl.createWorkerThreadHelper(ThreadPoolImpl.java:326)
        at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl.createWorkerThread(ThreadPoolImpl.java:341)
        at com.sun.corba.ee.impl.orbutil.threadpool.WorkQueueImpl.addWork(WorkQueueImpl.java:161)
        at com.sun.ejb.containers.util.ContainerWorkPool.addLast(ContainerWorkPool.java:89)
        at com.sun.ejb.containers.util.ContainerWorkPool.addLast(ContainerWorkPool.java:74)
        at com.sun.ejb.containers.util.pool.NonBlockingPool$PoolResizeTimerTask.run(NonBlockingPool.java:631)
        at java.util.TimerThread.mainLoop(Timer.java:512)
        at java.util.TimerThread.run(Timer.java:462)
|#]

-------------------------------------------------------------------------------------
[Message sent by forum member 'bornoz' (bornoz)]

http://forums.java.net/jive/thread.jspa?messageID=353749