Socket Exceptoin  by  JVM

Hello
I have analyze the exception .
Any body help me.
I need brief explanation.
Give me suggestion how can rectify it.
java.net.SocketException: Connection reset by peer: JVM_recv in socket input stream read
     at java.net.SocketInputStream.socketRead(Native Method)
Thanks

Please post Code and the full error message
Use  tags for posting code.
Message was edited by:
karthikramas
Message was edited by:
karthikramas
Message was edited by:
karthikramas

Similar Messages

  • About the internal socket used by JVM

    In our JAVA process which run by JRE1.4.2 I observed a socket descriptor occupied by our JAVA process. This port is showed as following(Our system is Solaris SPARC 2.9). We can not use this port in other
    process, it gives us some trouble.
    $ uname -a
    SunOS test3 5.9 Generic_112233-04 sun4u sparc SUNW,Ultra-60
    $ java -version
    java version "1.4.2_02"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_02-b03)
    Java HotSpot(TM) Client VM (build 1.4.2_02-b03, mixed mode)
    $ netstat -an|grep 52513
    *.52513 *.* 0 0 49152 0 BOUND
    *.52513 *.* 0 0 49152 0 BOUND
    # /usr/local/bin/lsof -i|grep 52513
    java 24218 ainet 5u IPv6 0x317a63f4058 0t0 TCP localhost:52513->localhost:52512 (BOUND)
    We don't specify this port in our program, so I am confused why it is generated? Moveroever when I run
    the same program using JRE1.2, this suspected port does not exist.
    I am appreciated for any information about this topic.
    Thanks

    As a guess, it might be associated with the Java Update feature being added to the jvm. I've read where it keeps a couple of ports open checking for updates.
    Check some of the current release docs, they should have the info.

  • Max number of sockets provided by JVM

    Hi,
    I am currently working on a program that creates a vast number of stream-oriented sockets and I encountered some problems that made me wonder whether there is a maximum number of sockets available.
    I searched the forum for a hint but only found vague answers. What I am particularly interested in is a statement whether there is a maximum number of sockets that can be managed by the virtual machine regardless of the hardware provided or the operating system in use.
    Thanks in advance.

    If I were to write Java, I would not impose an
    arbitrary limit but would rely upon the operating
    system and thus "inherit" the limit from there.Correct. It's the OS that specifies the limitations in this case.

  • Max. no. of Socket (TCP) Connection in Java

    Dear All,
    Made a java based chat program for a business application. Having serious problem, when the number of users exceeds 28 all the client sockets connected to the server throws java.io.EOFException.
    Tested the server in couple of machines, when the socket connections touches 29 its not responding. Is there any limitation or setup to be done to use maximum no. of socket connection in JVM or in Operating System ?
    Please help me out. Its really very very urgent
    Server running in a PC machine loaded with Windows 2003 Server
    Rgds
    VenQuet
    Edited by: venquett on Apr 8, 2008 3:54 AM

    all the client sockets connected to the server throws java.io.EOFExceptionThat indicates that the server has closed them all. Are you sure that's the exception you get?
    You should be able to get hundreds of connections. The limit is not imposed by Java but by your operating system, or possibly the server.

  • Server does not get a socket connect event with Apache MINA

    I have this weird problem that was recently detected.
    I have a server written with the Apache MINA framework that runs a Linux machine with 64 bit server JVM 6.0.
    The server accept sockets from clients using our own proprietary protocol, and everything works ok for some time.
    After a couple of hours, the server seems to stop getting the socket accept events (in MINA, the sessionOpened event) and the socket close event.
    It seems that we can open a socket to the JVM, but the application does not know about it.
    Does anyone got something like this with MINA or NIO?
    Any idea?
    Thanks
    Ran.

    Ok fixed. 
    At a elevated cmd prompt run ;
    C:\Users\administrator.TOM>setspn -x
    As you can see the DC serv1 had duplicate SPNs.
    Checking domain DC=TOM
    Processing entry 1
    HOST/serv1.TOM is registered on these accounts:
            CN=SERV1,OU=Domain Controllers,DC=TOM
            CN=C00049,CN=Computers,DC=TOM
    {14E52635-0A95-4a5c-BDB1-E0D0C703B6C8}/TOWN-HBWJ29ZOQC is registered on these ac
    counts:
            CN=Administrator,CN=Users,DC=TOM
            CN=TOWN-HBWJ29ZOQC,CN=Computers,DC=TOM
    {14E52635-0A95-4a5c-BDB1-E0D0C703B6C8}/town-hbwj29zoqc.TOM is registered on thes
    e accounts:
            CN=Administrator,CN=Users,DC=TOM
            CN=TOWN-HBWJ29ZOQC,CN=Computers,DC=TOM
    RestrictedKrbHost/serv1 is registered on these accounts:
            CN=C00049,CN=Computers,DC=TOM
            CN=SERV1,OU=Domain Controllers,DC=TOM
    RestrictedKrbHost/serv1.TOM is registered on these accounts:
            CN=C00049,CN=Computers,DC=TOM
            CN=SERV1,OU=Domain Controllers,DC=TOM
    found 5 groups of duplicate SPNs.
    Went to the computers OU and changed computer c00049 to the correct SPN. Now I have a new issues, I'll start a new thread.

  • Error in starting SPLService on Tomcat

    Hi,
    I get an error while starting CC&B v2.1.0 installed at my local machine on Tomcat. Hereunder is the SPL.log :
    - 10:32:37,953 [main] INFO (web.startup.SPLWebStartup) Initializing SPL web application
    - 10:32:37,953 [main] INFO (shared.context.ApplicationMode) Application is running web-based
    - 10:32:37,953 [main] INFO (shared.context.ApplicationMode) Application set to production mode
    - 10:32:38,031 [main] INFO (web.dynamicui.TransformServletHelper) Disable UIPage Compression set to false
    - 10:32:38,968 [main] INFO (support.context.ContextFactory) Creating default context
    - 10:32:39,093 [main] INFO (shared.environ.ApplicationProperties) loaded properties from resource spl.properties: {spl.runtime.service.extraInstallationServices=CILTINCP, spl.runtime.cobol.remote.jvmcommand=D:/CCB_Install/jdk1.5.0_09/bin/java.exe, spl.tools.loaded.applications=base,ccb,cm, spl.runtime.cobol.remote.jvmcount=1, spl.runtime.socket.file.dir=D:/ccbenv/ccbdemo/runtime, spl.runtime.cobol.sql.fetchSize=150, spl.runtime.cobol.cobrcall=false, spl.runtime.cobol.encoding=UTF8, spl.runtime.cobol.sql.disableQueryCache=false, spl.runtime.utf8Database=true, spl.runtime.cobol.remote.jvmoptions=-Xmx156m -server -Dfile.encoding=ISO8859_1 -cp D:/ccbenv/ccbdemo/splapp/standalone/config;D:/ccbenv/ccbdemo/splapp/standalone/lib/commons-beanutils-1.6.1.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/commons-codec-1.3.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/commons-collections-2.1.1.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/commons-fileupload-1.1.1.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/commons-httpclient-2.0.2.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/commons-io-1.2.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/commons-lang-2.2.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/commons-logging-1.0.4.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/concurrent-1.3.4.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/dom4j-1.6.1.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/hibernate-3.1.3.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/icu4j-3.6.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/jaxen-1.1-beta-11.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/jta.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/jtds-1.2.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/log4j-1.2.11.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/mfcobol.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/spl-base-2.1.0.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/spl-shared-2.1.0.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/spl-xai-2.1.0.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/xstream-1.2.1.jar, spl.runtime.environ.init.dir=D:/ccbenv/ccbdemo/etc, spl.runtime.cobol.sql.cache.maxTotalEntries=1000, spl.runtime.oracle.statementCacheSize=300, spl.runtime.cobol.remote.rmiStartPort=5503, spl.runtime.cobol.sql.cursoredCache.maxRows=10, spl.runtime.cobol.remote.jvm=true, spl.runtime.sql.highValue=}
    - 10:32:47,140 [main] WARN (shared.environ.ContextManagedObjectSet) Could not load resource com/splwg/cm/domain/contextManagedObjects.xml on classpath. This may be harmless but could mean a problem with the classpath. Please verify that the classpath for application cm is correctly configured.
    - 10:33:12,234 [main] INFO (support.context.ContextFactory) Registering lookups
    - 10:33:12,593 [main] INFO (support.context.ContextFactory) 480 lookups registered, time 348.717 ms
    - 10:33:12,593 [main] INFO (support.context.ComponentContainerLookupHelper) Initializing constants on 505 lookup interface classes
    - 10:33:13,187 [main] INFO (support.context.ComponentContainerLookupHelper) Done initializing lookup constants, time 594.028 ms
    - 10:33:13,187 [main] INFO (support.context.ContextFactory) Registering algorithm spots
    - 10:33:13,187 [main] INFO (support.context.ContextFactory) 99 algorithm spots registered, time 0.168 ms
    - 10:33:13,187 [main] INFO (support.context.ContextFactory) Registering algorithm components
    - 10:33:13,187 [main] INFO (support.context.ContextFactory) 46 algorithm components registered, time 0.045 ms
    - 10:33:13,187 [main] INFO (support.context.ContextFactory) Registering batch jobs
    - 10:33:13,187 [main] INFO (support.context.ContextFactory) 13 batch jobs registered, time 0.036 ms
    - 10:33:13,187 [main] INFO (support.context.ContextFactory) Registering Entities
    - 10:33:15,515 [main] INFO (support.context.ContextFactory) 812 entities registered, time 2,320.145 ms
    - 10:33:15,515 [main] INFO (support.context.ContextFactory) Registering Components
    - 10:33:15,515 [main] INFO (support.context.ContextFactory) 227 components registered, time 1.367 ms
    - 10:33:15,515 [main] INFO (support.context.ContextFactory) Registering Change Handlers
    - 10:33:15,515 [main] INFO (support.context.ContextFactory) 200 handlers registered, time 0.386 ms
    - 10:33:15,515 [main] INFO (support.context.ContextFactory) Registering Services
    - 10:33:15,671 [main] INFO (support.context.ContextFactory) 313 services registered, time 158.694 ms
    - 10:33:15,671 [main] INFO (support.context.ContextFactory) Registering Code Description queries
    - 10:33:15,687 [main] INFO (support.context.ContextFactory) 40 code/description queries registered, time 0.060 ms
    - 10:33:15,687 [main] INFO (support.context.ContextFactory) Registering cobol programs
    - 10:33:16,140 [main] INFO (support.context.ContextFactory) 187 cobol copybooks registered, time 455.640 ms
    - 10:33:16,140 [main] INFO (support.context.ContextFactory) Registering cobol programs
    - 10:33:16,140 [main] INFO (support.context.ContextFactory) 39 cobol programs registered, time 0.048 ms
    - 10:33:16,140 [main] INFO (support.context.ApplicationContext) Building hibernate configuration
    - 10:33:16,687 [main] INFO (support.context.ApplicationContext) Adding 812 hibernate mappings
    - 10:33:17,640 [main] INFO (support.context.ApplicationContext) Added 100 mappings
    - 10:33:18,250 [main] INFO (support.context.ApplicationContext) Added 200 mappings
    - 10:33:19,015 [main] INFO (support.context.ApplicationContext) Added 300 mappings
    - 10:33:19,609 [main] INFO (support.context.ApplicationContext) Added 400 mappings
    - 10:33:20,562 [main] INFO (support.context.ApplicationContext) Added 500 mappings
    - 10:33:21,140 [main] INFO (support.context.ApplicationContext) Added 600 mappings
    - 10:33:21,734 [main] INFO (support.context.ApplicationContext) Added 700 mappings
    - 10:33:22,343 [main] INFO (support.context.ApplicationContext) Added 800 mappings
    - 10:33:22,406 [main] INFO (support.context.ApplicationContext) Added 812 mappings
    - 10:33:22,500 [main] INFO (support.context.ApplicationContext) Done building hibernate configuration, time 6,351.886 ms
    - 10:33:22,500 [main] INFO (support.context.ApplicationContext) Building hibernate session factory
    - 10:33:24,218 [main] INFO (hibernate.connection.ConnectionProviderFactory) Initializing connection provider: org.hibernate.connection.C3P0ConnectionProvider
    - 10:33:24,218 [main] INFO (hibernate.connection.C3P0ConnectionProvider) C3P0 using driver: oracle.jdbc.driver.OracleDriver at URL: jdbc:oracle:thin:@localhost:1521:etmdemo
    - 10:33:24,218 [main] INFO (hibernate.connection.C3P0ConnectionProvider) Connection properties: {user=ccbuser, password=****}
    - 10:33:24,218 [main] INFO (hibernate.connection.C3P0ConnectionProvider) autocommit mode: false
    - 10:33:24,234 [main] INFO (v2.log.MLog) MLog clients using log4j logging.
    - 10:33:24,640 [main] INFO (v2.c3p0.C3P0Registry) Initializing c3p0-0.9.0.4 [built 23-January-2006 22:20:29 -0500; debug? true; trace: 10]
    - 10:33:24,812 [main] INFO (v2.c3p0.PoolBackedDataSource) Initializing c3p0 pool... com.mchange.v2.c3p0.PoolBackedDataSource@215748 [ connectionPoolDataSource -> com.mchange.v2.c3p0.WrapperConnectionPoolDataSource@100269d [ acquireIncrement -> 1, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> 100269d, idleConnectionTestPeriod -> 0, initialPoolSize -> 1, maxIdleTime -> 300, maxPoolSize -> 150, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 1, nestedDataSource -> com.mchange.v2.c3p0.DriverManagerDataSource@56be4e [ description -> null, driverClass -> null, factoryClassLocation -> null, identityToken -> 56be4e, jdbcUrl -> jdbc:oracle:thin:@localhost:1521:etmdemo, properties -> {user=******, password=******} ], preferredTestQuery -> null, propertyCycle -> 300, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, usesTraditionalReflectiveProxies -> false ], factoryClassLocation -> null, identityToken -> 215748, numHelperThreads -> 3 ]
    - 10:33:26,296 [main] INFO (hibernate.dialect.Dialect) Using dialect: org.hibernate.dialect.Oracle9Dialect
    - 10:33:26,312 [main] INFO (hibernate.transaction.TransactionFactoryFactory) Transaction strategy: org.hibernate.transaction.JDBCTransactionFactory
    - 10:33:26,312 [main] INFO (hibernate.transaction.TransactionManagerLookupFactory) No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
    - 10:33:26,343 [main] INFO (hibernate.impl.SessionFactoryImpl) building session factory
    - 10:33:36,812 [main] INFO (hibernate.impl.SessionFactoryObjectFactory) Not binding factory to JNDI, no JNDI name configured
    - 10:33:36,812 [main] INFO (support.context.ApplicationContext) Done building hibernate session factory, time 14,318.045 ms
    - 10:33:37,484 [main] INFO (support.sql.OracleFunctionReplacer) Oracle driver statement cache enabled with size of 300
    - 10:33:37,531 [main] INFO (support.context.ApplicationContext) Database: Oracle, version: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    - 10:33:37,531 [main] INFO (support.context.ApplicationContext) JDBC driver: Oracle JDBC driver, version: 10.2.0.1.0
    - 10:33:38,828 [main] INFO (support.context.ApplicationContext) System owner is: 'CM '
    - 10:33:39,328 [main] INFO (cobol.host.CobolHostStartup) Using provided java command for remote cobol execution: D:/CCB_Install/jdk1.5.0_09/bin/java.exe
    - 10:33:39,328 [main] INFO (cobol.host.CobolHostStartup) Using provided java command options for remote cobol execution: -Xmx156m -server -Dfile.encoding=ISO8859_1 -cp D:/ccbenv/ccbdemo/splapp/standalone/config;D:/ccbenv/ccbdemo/splapp/standalone/lib/commons-beanutils-1.6.1.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/commons-codec-1.3.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/commons-collections-2.1.1.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/commons-fileupload-1.1.1.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/commons-httpclient-2.0.2.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/commons-io-1.2.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/commons-lang-2.2.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/commons-logging-1.0.4.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/concurrent-1.3.4.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/dom4j-1.6.1.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/hibernate-3.1.3.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/icu4j-3.6.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/jaxen-1.1-beta-11.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/jta.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/jtds-1.2.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/log4j-1.2.11.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/mfcobol.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/spl-base-2.1.0.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/spl-shared-2.1.0.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/spl-xai-2.1.0.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/xstream-1.2.1.jar
    - 10:33:39,343 [main] INFO (cobol.host.CobolHostStartup) Using starting port number 5503 for remote cobol execution.
    - 10:33:40,031 [main] INFO (cobol.host.SocketStrategy) Socket strategy set to com.splwg.base.support.cobol.host.sockets.WindowsPipeSocketStrategy
    - 10:33:41,171 [main] INFO (cobol.host.CobolHostStartup) Using active JVM count of 1 for remote cobol execution.
    *-  10:34:03,203 [main] ERROR (cobol.host.SocketStrategy) Unable to establish connection on port 5506 after waiting 20 seconds.*
    java.net.ConnectException: Error: Could not open pipe
    caused by system error: The system cannot find the file specified.
         at com.splwg.base.support.cobol.host.sockets.WindowsPipeSocket.connectToPipe(Native Method)
         at com.splwg.base.support.cobol.host.sockets.WindowsPipeSocket.<init>(WindowsPipeSocket.java:63)
         at com.splwg.base.support.cobol.host.sockets.WindowsPipeSocket.createSocket(WindowsPipeSocket.java:100)
         at com.splwg.base.support.cobol.host.sockets.WindowsPipeSocket.connect(WindowsPipeSocket.java:95)
         at com.splwg.base.support.cobol.host.sockets.WindowsPipeSocketStrategy.openSocket(WindowsPipeSocketStrategy.java:32)
         at com.splwg.base.support.cobol.host.SocketStrategy.unsafeOpen(SocketStrategy.java:118)
         at com.splwg.base.support.cobol.host.SocketStrategy.open(SocketStrategy.java:103)
         at com.splwg.base.support.cobol.host.OptimizedRemoteExecuterStub.createNewHolder(OptimizedRemoteExecuterStub.java:162)
         at com.splwg.base.support.cobol.host.OptimizedRemoteExecuterStub.getStreamHolder(OptimizedRemoteExecuterStub.java:125)
         at com.splwg.base.support.cobol.host.OptimizedRemoteExecuterStub.invoke(OptimizedRemoteExecuterStub.java:46)
         at com.splwg.base.support.cobol.host.RemoteRunnerImpl.invoke(RemoteRunnerImpl.java:89)
         at com.splwg.base.support.cobol.host.RemoteJVMConnectionImpl.createRemoteRunner(RemoteJVMConnectionImpl.java:148)
         at com.splwg.base.support.cobol.host.RemoteJVMConnectionImpl.<init>(RemoteJVMConnectionImpl.java:67)
         at com.splwg.base.support.cobol.host.RemoteJVMFactoryImpl.addConnection(RemoteJVMFactoryImpl.java:83)
         at com.splwg.base.support.cobol.host.RotatingCommandRunnerProvider.addNewConnection(RotatingCommandRunnerProvider.java:135)
         at com.splwg.base.support.cobol.host.RotatingCommandRunnerProvider.addNecessaryConnections(RotatingCommandRunnerProvider.java:121)
         at com.splwg.base.support.cobol.host.RotatingCommandRunnerProvider.<init>(RotatingCommandRunnerProvider.java:61)
         at com.splwg.base.support.cobol.host.CobolHostStartup.startup(CobolHostStartup.java:41)
         at com.splwg.base.support.context.ApplicationContext.initializeCobolRuntime(ApplicationContext.java:178)
         at com.splwg.base.support.context.ApplicationContext.initialize(ApplicationContext.java:158)
         at com.splwg.base.support.context.ContextFactory.buildContext(ContextFactory.java:144)
         at com.splwg.base.support.context.ContextFactory.buildContext(ContextFactory.java:65)
         at com.splwg.base.support.context.ContextFactory.createDefaultContext(ContextFactory.java:426)
         at com.splwg.base.web.startup.SPLWebStartup.initializeApplicationContext(SPLWebStartup.java:175)
         at com.splwg.base.web.startup.SPLWebStartup.contextInitialized(SPLWebStartup.java:63)
         at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3763)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4211)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
         at org.apache.catalina.core.StandardService.start(StandardService.java:450)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
    - 10:34:03,234 [main] ERROR (cobol.host.SocketStrategy) Unable to create socket for inter JVM communication on port 5506
    - 10:34:03,250 [main] INFO (cobol.host.RemoteJVMConnectionImpl) Connection to JVM 1 being shunned
    *-  10:34:03,250 [main] ERROR (cobol.host.RemoteJVMConnectionImpl) An exception has occurred calling the remote JVM*
    *-  10:34:03,250 [main] FATAL (support.context.ApplicationContext) Error initializing ApplicationContext*
    *-  10:34:03,250 [main] ERROR ([Catalina].[localhost].[]) Exception sending context initialized event to listener instance of class com.splwg.base.web.startup.SPLWebStartup*com.splwg.shared.common.LoggedException:
    The following stacked messages were reported as the LoggedException was rethrown:
    com.splwg.base.support.context.ApplicationContext.initialize(ApplicationContext.java:158): Error initializing ApplicationContext
    com.splwg.base.support.cobol.host.OptimizedRemoteExecuterStub.getStreamHolder(OptimizedRemoteExecuterStub.java:125): An exception has occurred calling the remote JVM
    com.splwg.base.support.cobol.host.SocketStrategy.unsafeOpen(SocketStrategy.java:123): Unable to create socket for inter JVM communication on port 5506
    The root LoggedException was: Unable to establish connection on port 5506 after waiting 20 seconds.
         at com.splwg.shared.common.LoggedException.wrap(LoggedException.java:197)
         at com.splwg.shared.common.LoggedException.wrap(LoggedException.java:85)
         at com.splwg.base.support.cobol.host.SocketStrategy.handleConnectionException(SocketStrategy.java:134)
         at com.splwg.base.support.cobol.host.SocketStrategy.unsafeOpen(SocketStrategy.java:123)
         at com.splwg.base.support.cobol.host.SocketStrategy.open(SocketStrategy.java:103)
         at com.splwg.base.support.cobol.host.OptimizedRemoteExecuterStub.createNewHolder(OptimizedRemoteExecuterStub.java:162)
         at com.splwg.base.support.cobol.host.OptimizedRemoteExecuterStub.getStreamHolder(OptimizedRemoteExecuterStub.java:125)
         at com.splwg.base.support.cobol.host.OptimizedRemoteExecuterStub.invoke(OptimizedRemoteExecuterStub.java:46)
         at com.splwg.base.support.cobol.host.RemoteRunnerImpl.invoke(RemoteRunnerImpl.java:89)
         at com.splwg.base.support.cobol.host.RemoteJVMConnectionImpl.createRemoteRunner(RemoteJVMConnectionImpl.java:148)
         at com.splwg.base.support.cobol.host.RemoteJVMConnectionImpl.<init>(RemoteJVMConnectionImpl.java:67)
         at com.splwg.base.support.cobol.host.RemoteJVMFactoryImpl.addConnection(RemoteJVMFactoryImpl.java:83)
         at com.splwg.base.support.cobol.host.RotatingCommandRunnerProvider.addNewConnection(RotatingCommandRunnerProvider.java:135)
         at com.splwg.base.support.cobol.host.RotatingCommandRunnerProvider.addNecessaryConnections(RotatingCommandRunnerProvider.java:121)
         at com.splwg.base.support.cobol.host.RotatingCommandRunnerProvider.<init>(RotatingCommandRunnerProvider.java:61)
         at com.splwg.base.support.cobol.host.CobolHostStartup.startup(CobolHostStartup.java:41)
         at com.splwg.base.support.context.ApplicationContext.initializeCobolRuntime(ApplicationContext.java:178)
         at com.splwg.base.support.context.ApplicationContext.initialize(ApplicationContext.java:158)
         at com.splwg.base.support.context.ContextFactory.buildContext(ContextFactory.java:144)
         at com.splwg.base.support.context.ContextFactory.buildContext(ContextFactory.java:65)
         at com.splwg.base.support.context.ContextFactory.createDefaultContext(ContextFactory.java:426)
         at com.splwg.base.web.startup.SPLWebStartup.initializeApplicationContext(SPLWebStartup.java:175)
         at com.splwg.base.web.startup.SPLWebStartup.contextInitialized(SPLWebStartup.java:63)
         at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3763)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4211)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
         at org.apache.catalina.core.StandardService.start(StandardService.java:450)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
    Caused by: java.net.ConnectException: Error: Could not open pipe
    caused by system error: The system cannot find the file specified.
         at com.splwg.base.support.cobol.host.sockets.WindowsPipeSocket.connectToPipe(Native Method)
    can anyone please help me out to resolve this issue.
    Thanks,
    Fawaz

    Hi,
    Have you tried to restart the SPL service again and again? And sometime i use to get these OptimizedRemoteExecuterStub.getStreamHolder(OptimizedRemoteExecuterStub.java:125): An exception has occurred calling the remote JVM exception if the machine is occupying more memory....
    Try to restart it again.

  • CC&B Install issue:ClassNotFound RPCRouterServlet & libcobjvm_sun_150

    I'm trying to install CC&B 2.3.1 on 64 bit CentOS 5.1 with WebLogic. Everything in the installation process appears to execute without errors now. When starting up CC&B, the SPLWeb deployment fails to start. The WebLogic Admin Console is available and the SPLService deployment is "Active". From the logs, the only error messages (in order of appearance) seems to be
    ClassNotFoundException: org.open.spml.v2.transport.RPCServlet
    Sorry unable to load libcobjvm_sun_150
    Unable to establish connection on port 6506 after waiting 20 seconds
    Port 6506 is open.
    "./splenviron -e demo1" at the command line executes without throwing the "Sorry unable to load" message. Using "ldd -v" at the command prompt shows that libcobjvm_sun_150.so can link all the required libraries.
    I'm at a loss as to how to resolve the above issues so that SPLWeb deployment starts successfully.
    I'm more than happy to post log snippets of anything that might be relevant to resolving this issue, I'm just unfamiliar with what log snippets would be relevant for this issue.
    Jason

    Yes, it is 32 bit java.
    WerbLogic version: 10.3.2
    Oracle Database version: 11.2.0.1.0
    Environment
    uname -a
    Linux lithium 2.6.18-194.32.1.el5 #1 SMP Wed Jan 5 17:52:25 EST 2011 x86_64 x86_64 x86_64 GNU/Linux
    cobjrun32 -version
    java version "1.5.0_24"
    Oracle JRockit(R) (compiled mode)
    env
    _=*25659*/usr/bin/env
    BEADIR=/u01/app/oracle/product/10.3.2/middleware
    BEA_HOME=/u01/app/oracle/product/10.3.2/middleware
    C3P0_JAR_DIR=/u01/app/c3po/lib
    CLASSPATH=/opt/SPLcobAS51/lib/mfcobol.jar:/u01/app/jrockit-jdk1.5.0_24-R28.1.0-4.0.1_32/jre/lib/rt.jar:/u01/app/oracle/product/10.3.2/middleware/wlserver/server/lib/weblogic.jar
    COBCPY=/opt/SPLcobAS51/cpylib
    COBDIR=/opt/SPLcobAS51
    COLORTERM=gnome-terminal
    CVS_RSH=ssh
    DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-dOUch8VbVe,guid=75822bfa64fbe31043b0ec004d502342
    DESKTOP_SESSION=default
    DESKTOP_STARTUP_ID=
    DISPLAY=:0.0
    GDMSESSION=default
    GDM_XSERVER_LOCATION=local
    GNOME_DESKTOP_SESSION_ID=Default
    GNOME_KEYRING_SOCKET=/tmp/keyring-pR0PEl/socket
    GTK_RC_FILES=/etc/gtk/gtkrc:/home/cissys/.gtkrc-1.2-gnome2
    G_BROKEN_FILENAMES=1
    HIBERNATE_JAR_DIR=/u01/app/hibernate
    HISTSIZE=1000
    HOME=/home/cissys
    HOSTNAME=lithium
    INPUTRC=/etc/inputrc
    JAVA_HOME=/u01/app/jrockit-jdk1.5.0_24-R28.1.0-4.0.1_32
    JAVA_HOME_32=/u01/app/jrockit-jdk1.5.0_24-R28.1.0-4.0.1_32
    JAVA_HOME_64=/u01/app/jrockit-jdk1.5.0_24-R28.1.0-4.0.1
    JH=/u01/app/jrockit-jdk1.5.0_24-R28.1.0-4.0.1
    JROCKIT_HOME=/u01/app/jrrt-3.1.2-1.6.0
    LANG=en_US.UTF-8
    LD_LIBRARY_PATH=/opt/SPLcobAS51/lib:/spl/demo1/runtime:/u01/app/jrockit-jdk1.5.0_24-R28.1.0-4.0.1_32/jre/lib/i386/native_threads:/u01/app/jrockit-jdk1.5.0_24-R28.1.0-4.0.1_32/jre/lib/i386:/u01/app/jrockit-jdk1.5.0_24-R28.1.0-4.0.1_32/jre/lib/i386/jrockit
    LESSOPEN=|/usr/bin/lesspipe.sh %s
    LOGNAME=cissys
    LS_COLORS=
    MAIL=/var/spool/mail/cissys
    ORACLE_HOME=/u01/app/oracle/product/11.2.0/db
    ORACLE_HOSTNAME=lithium
    ORACLE_SID=makccb01
    PATH=/u01/app/oracle/product/11.2.0/db/perl/bin://usr/kerberos/bin:/u01/app/oracle/product/11.2.0/db/bin:/opt/SPLcobAS51/bin:/u01/app/jrockit-jdk1.5.0_24-R28.1.0-4.0.1_32/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin
    PWD=/home/cissys
    SESSION_MANAGER=local/lithium:/tmp/.ICE-unix/16622
    SHELL=/bin/ksh
    SHLVL=0
    SSH_AGENT_PID=16658
    SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
    SSH_AUTH_SOCK=/tmp/ssh-JhBlx16622/agent.16622
    TERM=xterm
    USER=cissys
    USERNAME=cissys
    WINDOWID=22044475
    WL_HOME=/u01/app/oracle/product/10.3.2/middleware/wlserver
    perl -v
    This is perl, v5.10.0 built for x86_64-linux-thread-multi
    Copyright 1987-2007, Larry Wall
    Errors from screen output
    When processing WebService module 'XAIApp.war'. Failed to load servlet Class: org.openspml.v2.transport.RPCRouterServlet
    Ignoring: unable to load class:java.lang.ClassNotFoundException: org.openspml.v2.transport.RPCRouterServlet at: weblogic.xml.schema.binding.util.ClassUtil.loadClass(ClassUtil.java:76)
    When processing WebService module 'XAIApp.war'. Failed to load servlet Class: org.openspml.v2.transport.RPCRouterServlet
    Ignoring: unable to load class:java.lang.ClassNotFoundException: org.openspml.v2.transport.RPCRouterServlet at: weblogic.xml.schema.binding.util.ClassUtil.loadClass(ClassUtil.java:76)
    - 2011-02-07 14:10:16,238 [pool-2-thread-1] ERROR (cobol.host.SocketStrategy) Unable to establish connection on port 6506 after waiting 20 seconds.
    java.net.ConnectException: Cannot connect to socket caused by: No such file or directory
    at com.splwg.base.support.cobol.host.sockets.UnixDomainSocketNative.connectDomainSocket(Native Method)
    at com.splwg.base.support.cobol.host.sockets.UnixDomainSocket.connectDomainSocket(UnixDomainSocket.java:87)
    at com.splwg.base.support.cobol.host.sockets.UnixDomainSocketStrategy.openSocket(UnixDomainSocketStrategy.java:40)
    at com.splwg.base.support.cobol.host.SocketStrategy.unsafeOpen(SocketStrategy.java:119)
    at com.splwg.base.support.cobol.host.SocketStrategy.open(SocketStrategy.java:104)
    at com.splwg.base.support.cobol.host.OptimizedRemoteExecuterStub.createNewHolder(OptimizedRemoteExecuterStub.java:169)
    at com.splwg.base.support.cobol.host.OptimizedRemoteExecuterStub.getStreamHolder(OptimizedRemoteExecuterStub.java:132)
    at com.splwg.base.support.cobol.host.OptimizedRemoteExecuterStub.invoke(OptimizedRemoteExecuterStub.java:52)
    at com.splwg.base.support.cobol.host.RemoteRunnerImpl.invoke(RemoteRunnerImpl.java:111)
    at com.splwg.base.support.cobol.host.RemoteJVMConnectionImpl.createRemoteRunner(RemoteJVMConnectionImpl.java:157)
    at com.splwg.base.support.cobol.host.RemoteJVMConnectionImpl.<init>(RemoteJVMConnectionImpl.java:76)
    at com.splwg.base.support.cobol.host.RemoteJVMFactoryImpl.addConnection(RemoteJVMFactoryImpl.java:89)
    at com.splwg.base.support.cobol.host.RotatingCommandRunnerProvider$ConnectionMonitor.addNecessaryConnections(RotatingCommandRunnerProvider.java:401)
    at com.splwg.base.support.cobol.host.RotatingCommandRunnerProvider$ConnectionMonitor.doHousekeeping(RotatingCommandRunnerProvider.java:330)
    at com.splwg.base.support.cobol.host.RotatingCommandRunnerProvider$ConnectionMonitor.run(RotatingCommandRunnerProvider.java:323)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:619)
    - 2011-02-07 14:10:16,268 [pool-2-thread-1] ERROR (cobol.host.SocketStrategy) Unable to create socket for inter JVM communication on port 6506
    - 2011-02-07 14:10:16,270 [pool-2-thread-1] INFO (cobol.host.RemoteJVMConnectionImpl) Connection to JVM 1 being shunned
    - 2011-02-07 14:10:16,271 [pool-2-thread-1] ERROR (cobol.host.RemoteJVMConnectionImpl) An exception has occurred calling the remote JVM
    - 2011-02-07 14:10:16,273 [pool-2-thread-1] ERROR (cobol.host.RotatingCommandRunnerProvider) Caught exception in Remote JVM connection housekeeper: com.splwg.shared.common.LoggedException:
    The following stacked messages were reported as the LoggedException was rethrown:
    com.splwg.base.support.cobol.host.OptimizedRemoteExecuterStub.getStreamHolder(OptimizedRemoteExecuterStub.java:132): An exception has occurred calling the remote JVM
    com.splwg.base.support.cobol.host.SocketStrategy.unsafeOpen(SocketStrategy.java:124): Unable to create socket for inter JVM communication on port 6506
    The root LoggedException was: Unable to establish connection on port 6506 after waiting 20 seconds.
    - 2011-02-07 14:10:17,440 [JVM 2 INFO logger] INFO (cobol.host.ProcessLogger) JVMCHILD : <info> COBDIR = /opt/SPLcobAS51
    - 2011-02-07 14:10:17,541 [JVM 2 INFO logger] INFO (cobol.host.ProcessLogger) JVMCHILD : <info> SPLENVIRON = demo1
    - 2011-02-07 14:10:17,643 [JVM 2 INFO logger] INFO (cobol.host.ProcessLogger) JVMCHILD : <info> JAVA_HOME = /u01/app/jrockit-jdk1.5.0_24-R28.1.0-4.0.1_32
    - 2011-02-07 14:10:17,744 [JVM 2 INFO logger] INFO (cobol.host.ProcessLogger) JVMCHILD : <info> SPLEBASE = /spl/demo1
    - 2011-02-07 14:10:17,846 [JVM 2 INFO logger] INFO (cobol.host.ProcessLogger) JVMCHILD : <info> COBMODE=32
    - 2011-02-07 14:10:17,948 [JVM 2 INFO logger] INFO (cobol.host.ProcessLogger) JVMCHILD : <info> PATH=/u01/app/jrockit-jdk1.5.0_24-R28.1.0-4.0.1_32/jre/bin:/u01/app/jrockit-jdk1.5.0_24-R28.1.0-4.0.1_32/bin:/u01/app/jrockit-jdk1.5.0_24-R28.1.0-4.0.1_32/jre/bin:/u01/app/jrockit-jdk1.5.0_24-R28.1.0-4.0.1_32/bin:/opt/SPLcobAS51/bin:/spl/demo1/runtime:/usr/ccs/bin:/u01/app/jrockit-jdk1.5.0_24-R28.1.0-4.0.1_32/bin:/u01/app/jrockit-jdk1.5.0_24-R28.1.0-4.0.1_32/bin:/u01/app/jrockit-jdk1.5.0_24-R28.1.0-4.0.1_32/bin:/spl/demo1/bin:/spl/demo1/product/apache-ant-1.7.0/bin:/u01/app/oracle/product/11.2.0/db/bin:/opt/pdk/bin:/usr/local/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin
    - 2011-02-07 14:10:18,050 [JVM 2 INFO logger] INFO (cobol.host.ProcessLogger) JVMCHILD : <info> LD_LIBRARY_PATH=/u01/app/jrockit-jdk1.5.0_24-R28.1.0-4.0.1_32/jre/lib/amd64/server:/u01/app/jrockit-jdk1.5.0_24-R28.1.0-4.0.1_32/jre/lib/amd64/native_threads:/u01/app/jrockit-jdk1.5.0_24-R28.1.0-4.0.1_32/jre/lib/i386:/u01/app/jrockit-jdk1.5.0_24-R28.1.0-4.0.1_32/jre/lib/i386/server://u01/app/jrockit-jdk1.5.0_24-R28.1.0-4.0.1_32/jre/lib/i386/native_threads:/u01/app/oracle/product/11.2.0/db/lib32:/u01/app/jrockit-jdk1.5.0_24-R28.1.0-4.0.1_32/jre/lib/i386:/u01/app/jrockit-jdk1.5.0_24-R28.1.0-4.0.1_32/jre/lib/i386/server://u01/app/jrockit-jdk1.5.0_24-R28.1.0-4.0.1_32/jre/lib/i386/native_threads:/spl/demo1/runtime:/opt/SPLcobAS51/lib:/u01/app/jrockit-jdk1.5.0_24-R28.1.0-4.0.1_32/jre/lib
    - 2011-02-07 14:10:18,152 [JVM 2 INFO logger] INFO (cobol.host.ProcessLogger) JVMCHILD : <info> CLASSPATH=/opt/SPLcobAS51/lib/mfcobol.jar:/opt/SPLcobAS51/lib/mfimtk.jar:/spl/demo1/splapp/standalone/lib/antlr-2.7.6.jar:/spl/demo1/splapp/standalone/lib/xalan-2.7.0.jar:/spl/demo1/splapp/standalone/lib/serializer-2.7.0.jar:/spl/demo1/splapp/standalone/lib/ojdbc5-11.1.0.7.0.jar:/u01/app/jrrt-3.1.2-1.6.0/lib/tools.jar:/u01/app/oracle/product/10.3.2/middleware/wlserver_10.0/server:/u01/app/oracle/product/10.3.2/middleware/wlserver_10.0/server/lib/weblogic_sp.jar:/u01/app/oracle/product/10.3.2/middleware/wlserver_10.0/server/lib/weblogic.jar:.:/u01/app/jrockit-jdk1.5.0_24-R28.1.0-4.0.1_32/jre/lib/rt.jar:/u01/app/jrockit-jdk1.5.0_24-R28.1.0-4.0.1_32/jre/lib/rt.jar:/u01/app/oracle/product/10.3.2/middleware/wlserver/server/lib/weblogic.jar:/opt/SPLcobAS51/lib:/spl/demo1/runtime::
    - 2011-02-07 14:10:18,254 [JVM 2 INFO logger] INFO (cobol.host.ProcessLogger) JVMCHILD : <info> sun_150
    - 2011-02-07 14:10:18,355 [JVM 2 INFO logger] INFO (cobol.host.ProcessLogger) JVMCHILD : <info> Executing cobjrun32 -DSPLENV=demo1 with the following Arguments
    - 2011-02-07 14:10:18,457 [JVM 2 INFO logger] INFO (cobol.host.ProcessLogger) JVMCHILD : <info> -Xmx256m -Dcom.microfocus.cobol.cobjvm=sun_150 -Dspl.runtime.socket.file.dir=/spl/demo1/runtime -Dfile.encoding=ISO8859_1 -cp /spl/demo1/splapp/standalone/config:/spl/demo1/splapp/standalone/lib/activation_api-1.1.jar:/spl/demo1/splapp/standalone/lib/coherence-3.5.2.jar:/spl/demo1/splapp/standalone/lib/coherence-work-3.5.2.jar:/spl/demo1/splapp/standalone/lib/commonj-3.5.2.jar:/spl/demo1/splapp/standalone/lib/commons-beanutils-core-1.7.0.jar:/spl/demo1/splapp/standalone/lib/commons-cli-1.1.jar:/spl/demo1/splapp/standalone/lib/commons-codec-1.3.jar:/spl/demo1/splapp/standalone/lib/commons-collections-2.1.1.jar:/spl/demo1/splapp/standalone/lib/commons-fileupload-1.2.jar:/spl/demo1/splapp/standalone/lib/commons-httpclient-2.0.2.jar:/spl/demo1/splapp/standalone/lib/commons-io-1.3.2.jar:/spl/demo1/splapp/standalone/lib/commons-lang-2.2.jar:/spl/demo1/splapp/standalone/lib/commons-logging-1.0.4.jar:/spl/demo1/splapp/standalone/lib/concurrent-1.3.4.jar:/spl/demo1/splapp/standalone/lib/dom4j-1.6.1.jar:/spl/demo1/splapp/standalone/lib/hibernate-3.2.7.jar:/spl/demo1/splapp/standalone/lib/icu4j-3.6.1.jar:/spl/demo1/splapp/standalone/lib/jaxen-1.1.1.jar:/spl/demo1/splapp/standalone/lib/jcip-annotations.jar:/spl/demo1/splapp/standalone/lib/jta.jar:/spl/demo1/splapp/standalone/lib/jtds-1.2.jar:/spl/demo1/splapp/standalone/lib/log4j-1.2.15.jar:/spl/demo1/splapp/standalone/lib/mail_api-1.4.jar:/spl/demo1/splapp/standalone/lib/mfcobol.jar:/spl/demo1/splapp/standalone/lib/ojdbc5-11.1.0.7.0.jar:/spl/demo1/splapp/standalone/lib/orai18n-collation.jar:/spl/demo1/splapp/standalone/lib/orai18n-mapping.jar:/spl/demo1/splapp/standalone/lib/orai18n-utility.jar:/spl/demo1/splapp/standalone/lib/orai18n.jar:/spl/demo1/splapp/standalone/lib/serializer-2.7.0.jar:/spl/demo1/splapp/standalone/lib/spl-base-2.2.0.jar:/spl/demo1/splapp/standalone/lib/spl-ccb-2.3.1.jar:/spl/demo1/splapp/standalone/lib/spl-servicebeaninterface-2.2.0.jar:/spl/demo1/splapp/standalone/lib/spl-serviceclient-2.2.0.jar:/spl/demo1/splapp/standalone/lib/spl-shared-2.2.0.jar:/spl/demo1/splapp/standalone/lib/spl-spml-2.2.0.jar:/spl/demo1/splapp/standalone/lib/spl-web-2.2.0.jar:/spl/demo1/splapp/standalone/lib/spl-xai-2.2.0.jar:/spl/demo1/splapp/standalone/lib/stax-api-1.0.1.jar:/spl/demo1/splapp/standalone/lib/stax2.jar:/spl/demo1/splapp/standalone/lib/staxmate-0.9.1.jar:/spl/demo1/splapp/standalone/lib/wstx-asl-3.2.1.jar:/spl/demo1/splapp/standalone/lib/xalan-2.7.0.jar:/spl/demo1/splapp/standalone/lib/xmlparserv2.jar:/spl/demo1/splapp/standalone/lib/xquery.jar:/spl/demo1/splapp/standalone/lib/xstream-1.2.1.jar:/spl/demo1/splapp/standalone/lib/yjp-controller-api-redist.jar:/spl/demo1/splapp/standalone/lib/geronimo-spec-j2ee-1.4-rc4.jar com.splwg.base.support.cobol.host.RemoteJVM 2 6505 6506 2
    - 2011-02-07 14:10:18,559 [JVM 2 INFO logger] INFO (cobol.host.ProcessLogger) Sorry unable to load libcobjvm_sun_150
    - 2011-02-07 14:10:18,661 [JVM 2 INFO logger] INFO (cobol.host.ProcessLogger)
    - 2011-02-07 14:10:18,762 [JVM 2 INFO logger] INFO (cobol.host.ProcessLogger) If libcobjvm_sun_150 is on shared library PATH, then ensure
    - 2011-02-07 14:10:18,864 [JVM 2 INFO logger] INFO (cobol.host.ProcessLogger) 'libjava' and 'java' are found on the PATH/Shared Library PATH.

  • System.exit

    Before user is about to close the gui, I want to free up the open sockets used in my application. Now, we don't want to poll the exit, waiting for the open sockets to finally free themselves and than the application quits. The user is going to thing something is wrong with the application and wonder why its taking to long to exit :)
    So, I thought of putting the close sockets in a thread and start it,
    but the next line after the start thread code in the main thread code
    is System.exit. Now once that calls, the free sockets thread
    won't do any work on closing the sockets, because the JVM is realease from its resource. Now I'am damm if don't use a thread or damm if using a thread (Not doing anything).
    Can I have a Thread as another JVM to free the sockets while the application exit?
    Thanks

    Please don't crosspostimport java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Test extends JFrame {
        public Test() {
         setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
         Container content = getContentPane();
         JButton jb = new JButton("Exit");
         content.add(jb,BorderLayout.SOUTH);
         jb.addActionListener(new ActionListener() {
             public void actionPerformed(ActionEvent ae) {
              doFinalStuff();
         addWindowListener(new WindowAdapter() {
             public void windowClosing(WindowEvent we) {
              doFinalStuff();
         setSize(200,200);
         show();
        private void doFinalStuff() {
         dispose();
         for (int i=0; i<10; i++) {
             try { Thread.sleep(1000); } catch (Exception exc) {}
             System.out.println(i);
         System.exit(0);
        public static void main(String[] args) { new Test(); }
    }

  • Socket.shutdownOutput() closes socket inside JVM

    Dear friends,
    We have a java class which uses the Socket class. Our class does a Socket.shutdownOutput() to indicate that the sending of data is over and the reply may start. It works just fine outside Oracle, but when the class is loaded in the database the shutdownOutput() method apparently causes the socket to be closed. Below is a sample of the code and its output. The user has JAVAUSERPRIV and JAVASYSPRIV granted, and I even tried JAVA_ADMIN without success. The Oracle versions tested were 10.2.0.1 (Windows) and 10.2.0.2 (AIX). Does anybody know what can be happening ? Thanks in advance.
    Code:
    Socket sockICM = new Socket("192.168.1.133", 5010);
    byte byxml[] = hmapICM.toXMLString().getBytes();
    System.out.println("1");
    InputStream isXmlOut = sockICM.getInputStream();
    sockICM.getOutputStream().write(byxml);
    System.out.println("1.5");
    sockICM.shutdownOutput();
    System.out.println("socket.isOutputShutdown(): " + sockICM.isOutputShutdown());
    System.out.println("socket.isClosed(): " + sockICM.isClosed());
    System.out.println("2");
    byte b[] = new byte[1000];
    InputStream isXmlOut = sockICM.getInputStream();
    System.out.println("3");
    ByteArrayOutputStream bos = new ByteArrayOutputStream();
    System.out.println("4");
    try
    int q;
    while((q = isXmlOut.read(b)) != -1)
    bos.write(b, 0, q);
    System.out.println("leu: " + bos.toString());
    catch(Exception io){
    System.out.println("err=" + io.toString());
    Output:
    1
    1.5
    socket.isOutputShutdown(): true
    socket.isClosed(): false
    2
    3
    4
    err=java.net.SocketException: Socket is closed
    /****************************************************/

    Thank you for the answer, Kuassi, I am going to do that. One more piece of information is that my printStackTrace shows the following:
    java.net.SocketException: Socket is closed
    at java.net.SocketInputStream.socketRead0(Native Method)
    at java.net.SocketInputStream.read(SocketInputStream.java:129)
    at java.net.SocketInputStream.read(SocketInputStream.java:90)
    at kiman.socktest.test(socktest:76)
    Do you know what does the "Native Method" on second line mean ? I think my problem
    is related to that somehow.

  • Communication between multiple JVMs

    We have a Java toolkit that is shipped as a JAR file. The toolkit is ported from a C++ DLL running on Windows. Therefore, in both instances (Java and C++), we can't control who loads us or when.
    I need to communicate between different JVMs running on the same machine. The communication is very simple: "Is this user logged on in your JVM?" I send a string to the other JVM and I get back a boolean. I don't need to worry about crossing machine boundaries. Also, I'm not expecting to have a huge number of JVMs running. Maybe 3 or 4 could be likely. However, the solution does need to scale in case there are more than that. I'm not setting a limit on the number of JVMs either.
    The C++ code handled this situation very easily and elegantly. It created a named system semaphore (mutex) whenever a user logged on. The name of the mutex was the username. So, if there were multiple instances of the DLL running in separate processes (EXEs), we could easily tell if this user was logged on in another instance. We'd try to create the system semaphore - it would fail saying the name already exists. Therefore, we'd know the user was already logged on. The named system semaphore provided the means for a machine-global list - which is exactly what we wanted. It also had this extra benefit: if the process terminates normally or abnormally, the system semaphore is removed from memory. This means: the application is terminated, the user is no longer logged on, and we can relog this user on.
    Therefore, I have 2 requirements:
    1) A machine-global list where we can place a string. Keep in mind, it doesn't absolutely have to be a machine-global list. A suitable means to talk to other JVMs is acceptable too.
    2) If the process exits normally or abnormally, the string(s) get removed (for this JVM) from the list. Abnormal termination is the more important one to focus on because lots of people of varying skill levels use our toolkit. Abnormal terminations can be common.
    The first thought is to store these in a file. That solves #1, but not #2. I've seen the JIPC package. However, I'm not too crazy about requiring 3rd party developers to start up another program (JIPC) before they start up their application. As I said, we're just a toolkit so we can't control when or who loads us. It's not totally out of the question, but I'd prefer something else.
    I have a fairly involved solution that involves sockets. The first JVM creates a ServerSocket on a specific port and becomes the server. Subsequent JVMs also try to create the ServerSocket on the same port. They get a BindException because the ServerSocket already exists, so they know they're clients. Then, they create a client socket and talk to the server that way. This gets a little hairy when the server goes away. The clients will scramble to become the server and then all the other clients need to reconnect to the new server.
    This proposed solution sounds like it will address both requirements. However, I'm looking for something simpler. I'm asking this forum for help in case there's an easier way to do this. I don't have the breadth of experience with Java yet to know if there's a simpler way to fix this. If I have to go with the socket solution, I will. I just didn't want to overlook something simple that is already built into Java.
    Thanks for any tips or suggestions

    Thanks for the response.
    FileLock. We still have to target JDK 1.3 so we can't use FileLocks (at this point)
    JNI: That's an interesting idea. I suspect many people are using our software on Windows. Therefore, we could probably fix it in Windows the same as in the C++ code. If they're not on Windows, we could use the Sockets approach.
    I also had another idea: how about hashing the username string into some integer (or long) value. Then use the hashed value to lock some other resource: like the port number passed to ServerSocket. I know ServerSocket only accepts 0 - 0xFFFF so this obviously won't work. But is there some other system-wide thing we could lock given an integral value?

  • Problem with Socket in FireFox 3.5

    My applet is trying to open a SecureSocket in FF 3.5 to connect to port xxxx on the server. Everything works fine for IE and FF below 3.5. However, in FF 3.5, I find out that everytime I open a Socket, it opens 2 ports to connect to port xxxx on the server. For IE and FF below 3.5, it only opens 1 port to connect to port xxxx on the server. I don't know what is the problem here. Is this a bug of FF? Is there anyway to work around this because my server only accepts one connection from each client.If the client is trying to connect to it more than one, it will refuse.

    Kirax wrote:
    Is this a bug of FF? Seems unlikely that it would be a FF bug, as all of that code is (to my knowledge) run strictly within a JVM. Can you post an SSCCE? Perhaps you have a bug that is only being exposed on a certain environment.
    Is there anyway to work around this because my server only accepts one connection from each client.If the client is trying to connect to it more than one, it will refuse.What happens on your client if your server just refuses the second connection? Where's the harm?
    Edited by: endasil on 3-Oct-2009 2:54 AM

  • NIO Socket implementation - delay between select and get data from socket

    Hi all,
    I have implemented a internal CallAPI for RPC over a socket connection. It works fine but if there are more than five clients and some load I have the phenomena that the READ selector returns a SelectorKey but I did not get any data from the socket.
    My implementation is based on NIO has following components:
    + Accept-Thread
    Thread handles new clients.
    + Read-Thread
    Thread handles the data from the socket for the registered client. Each request is handled in an own Process-Thread. A Thread-Pool implementation is used for processing.
    + Process-Thread
    The Process-Thread reads the data from the socket and starts the processing of the logical request.
    In my tests I get the notification of data at the socket. The Process-Thread want to read the data for the socket, but no data are available. In some situations if have to read about 20 times and more to get the data. Between each read attempt I have inserted a sleep in the Process-Thread if no data was available. This have improved the problem, but it already exists. I tested the problem with several systems and jvm's but it seams that it is independent from the system.
    What can I to do improve the situation?
    I already include the read implementation from the grizzly-Framework. But it doesn't improve the situation.
    Socket - Init
         protected void openSocket( String host, int port ) throws IOException
              serverChannel = ServerSocketChannel.open();
              serverChannel.configureBlocking( false );
              serverSocket = serverChannel.socket();
              serverSocket.setReuseAddress( true );
              this.serverhost = host;
              this.serverport = port;
              this.srvAcceptSelector = Selector.open();
              this.srvReadSelector = Selector.open();
              InetSocketAddress isa = null;
              if ( serverhost != null )
                   isa = new InetSocketAddress( this.serverhost, this.serverport );
              else
                   isa = new InetSocketAddress( this.serverport );
              serverSocket.bind( isa, 50 );
              serverChannel.register( this.srvAcceptSelector, SelectionKey.OP_ACCEPT );
         }New Client � Init
         // New Client
         if ( key.isAcceptable())
              keyCountConnect++;
              ServerSocketChannel actChannel =
                   (ServerSocketChannel) key.channel();
              // Socket akteptieren
              SocketChannel actSocket = actChannel.accept();
              if ( actSocket != null )
                   actSocket.finishConnect();
                   actSocket.configureBlocking( false );
                   actSocket.socket().setTcpNoDelay( true );
                   this.registerSocketList.add( actSocket );
                   this.srvReadSelector.wakeup();
         }Read Data from Socket
        protected int readDatafromSocket( ByteArrayOutputStream socketdata )
             throws IOException
             int readedChars = 0;
            int count = -1;
            Selector readSelector = null;
            SelectionKey tmpKey = null;
            if ( sc.isOpen())
                  ByteBuffer inputbuffer = null;
                 try
                      inputbuffer = bufferpool.getBuffer();
                      while (( count = sc.read( inputbuffer )) > 0 )
                           readedChars += count;
                          inputbuffer.flip();
                           byte[] tmparray=new byte[inputbuffer.remaining()];
                           inputbuffer.get( tmparray );
                           socketdata.write( tmparray );
                          inputbuffer.clear();
                      if ( count < 0 )
                           this.closeSocket();
                           if( readedChars == 0 )
                                readedChars = -1;
                           if ( log.isDebug())
                                  log.debug( "Socket is closed! " );
                      else if ( readedChars == 0 )
                           if ( log.isDebug())
                                  log.debug( "Reread with TmpSelector" );
                           // Glassfish/Grizzly-Implementation
                         readSelector = SelectorFactory.getSelector();
                         if ( readSelector == null )
                              return 0;
                          count = 1;
                          tmpKey = this.sc.register( readSelector, SelectionKey.OP_READ );
                         tmpKey.interestOps(
                              tmpKey.interestOps() | SelectionKey.OP_READ );
                         int code = readSelector.select( 500 );
                         tmpKey.interestOps(
                             tmpKey.interestOps() & ( ~SelectionKey.OP_READ ));
                         if ( code == 0 )
                             return 0;
                             // Return on the main Selector and try again.
                           while (( count = sc.read( inputbuffer )) > 0 )
                                readedChars += count;
                               inputbuffer.flip();
                                byte[] tmparray=new byte[inputbuffer.remaining()];
                                inputbuffer.get( tmparray );
                                socketdata.write( tmparray );
                               inputbuffer.clear();
                           if ( count < 0 )
                                this.closeSocket();
                                if( readedChars == 0 )
                                     readedChars =-1;
                           else if ( count == 0 )
                                  // No data
                 finally
                      if ( inputbuffer != null )
                           bufferpool.releaseBuffer( inputbuffer );
                           inputbuffer = null;
                      // Glassfish-Implementierung
                    if ( tmpKey != null )
                        tmpKey.cancel();
                    if ( readSelector != null)
                        // Bug 6403933
                         try
                            readSelector.selectNow();
                         catch (IOException ex)
                        SelectorFactory.returnSelector( readSelector );
            return readedChars;
        }Thanks for your time.

    I've commented on that blog before. It is rubbish:
    - what does 'overloading the main Selector' actually mean? if anything?
    - 'Although this not clearly stated inside the NIO API documentation': The API documentation doesn't say anything about which Selector you should register channels with. Why would it? Register it with any Selector you like ...
    - 'the cost of maintaining multiple Selectors can reduce scalability instead of improving it' Exactly. So what is the point again?
    - 'wrapping a ByteBuffer inside a ByteBufferInputStream:' Code is rubbish and redundant. java.nio.channels.Channels has methods for this.
    There is no a priori advantage to using multiple Selectors and threads unless you have multiple CPUs. And even then not much, as non-blocking reads and writes don't consume significant amounts of CPU. It's the processing of the data once you've got it that takes the CPU, and that should be done in a separate thread.
    So I would re-evaluate your strategy. I suspect you're getting the channel registered with more than one Selector at a time. Implement it the simple way first then see if you really have a problem with 'overloading the main Selector' ...

  • JVM and Azureus error

    # An unexpected error has been detected by Java Runtime Environment:
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d965340, pid=2296, tid=1652
    # Java VM: Java HotSpot(TM) Client VM (1.6.0-beta-b59g mixed mode, sharing)
    # Problematic frame:
    # V [jvm.dll+0x125340]
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    --------------- T H R E A D ---------------
    Current thread (0x00d7bf00): VMThread [id=1652]
    siginfo: ExceptionCode=0xc0000005, reading address 0x00000009
    Registers:
    EAX=0x1f975954, EBX=0x009988f0, ECX=0x00000001, EDX=0x1012e418
    ESP=0x00fefc1c, EBP=0x1f310000, ESI=0x2b1402e0, EDI=0x6da2a718
    EIP=0x6d965340, EFLAGS=0x00010202
    Top of Stack: (sp=0x00fefc1c)
    0x00fefc1c: 6d9656f0 6da2a718 6d9cbb92 6da44a24
    0x00fefc2c: 6da2a718 009988f0 009988f0 6d99728a
    0x00fefc3c: 6da2a718 00000000 6da2a718 6da2a718
    0x00fefc4c: 6d8d5301 00000001 00000002 6da2a718
    0x00fefc5c: 6da2a718 0099a460 009988f0 1f310000
    0x00fefc6c: 00000000 6d8d6d7b 00000001 00000000
    0x00fefc7c: 00000001 00000002 6da2a718 6da2a718
    0x00fefc8c: 009988f0 00000001 00010100 00001dd0
    Instructions: (pc=0x6d965340)
    0x6d965330: 8b 08 8b 50 0c 49 89 08 8b 08 8b 04 8a 8b 48 04
    0x6d965340: 8b 51 08 83 c1 08 50 ff 52 60 a1 e0 c3 a3 6d 83
    Stack: [0x00df0000,0x00ff0000), sp=0x00fefc1c, free space=2047k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    V [jvm.dll+0x125340]
    VM_Operation (0x0757f230): generation collection for allocation, mode: safepoint, requested by thread 0x0476f800
    --------------- P R O C E S S ---------------
    Java Threads: ( => current thread )
    0x10061800 JavaThread "Plugin azbpdhdtracker:DHT Tracker[695]" daemon [_thread_blocked, id=1540]
    0x04647200 JavaThread "Plugin azbpdht:DHTStats[175]" daemon [_thread_blocked, id=1428]
    0x0411c100 JavaThread "DHTControl:stats[673]" daemon [_thread_blocked, id=2372]
    0x049a6500 JavaThread "ConcurrentHasher[298]" daemon [_thread_blocked, id=3788]
    0x04042a00 JavaThread "DHTControl:stats[690]" daemon [_thread_blocked, id=2352]
    0x04121800 JavaThread "Simple Timer[241]" daemon [_thread_blocked, id=3900]
    0x0403cb00 JavaThread "Simple Timer[239]" daemon [_thread_blocked, id=3872]
    0x0411cc00 JavaThread "DHTControl:internallookups[80]" daemon [_thread_blocked, id=2148]
    0x0404ed00 JavaThread "DHTControl:internallookups[79]" daemon [_thread_blocked, id=1980]
    0x0491da00 JavaThread "DHTControl:internallookups[78]" daemon [_thread_blocked, id=3972]
    0x0aa31700 JavaThread "DHTControl:internallookups[77]" daemon [_thread_blocked, id=3464]
    0x100ede00 JavaThread "DHTControl:internallookups[76]" daemon [_thread_blocked, id=2480]
    0x045d6a00 JavaThread "DHTControl:internallookups[75]" daemon [_thread_blocked, id=3112]
    0x0a9cad00 JavaThread "DHTControl:internallookups[74]" daemon [_thread_blocked, id=3484]
    0x048e3d00 JavaThread "DHTControl:internallookups[73]" daemon [_thread_blocked, id=1732]
    0x03fcfb00 JavaThread "DHTControl:internallookups[72]" daemon [_thread_blocked, id=3260]
    0x040fad00 JavaThread "DHT:cacheRepublisher[4]" daemon [_thread_blocked, id=2244]
    0x00dcad00 JavaThread "DHTControl:internallookups[71]" daemon [_thread_blocked, id=2092]
    0x040dd100 JavaThread "DiskAccessController:requestDispatcher[0]" daemon [_thread_blocked, id=3560]
    0x04641500 JavaThread "CuncurrentHasher:scheduler" daemon [_thread_blocked, id=2916]
    0x04655500 JavaThread "DiskAccessController:requestDispatcher[0]" daemon [_thread_blocked, id=3488]
    0x04044500 JavaThread "DM:PeerListenAggregatorDispatcher" daemon [_thread_blocked, id=2316]
    0x04043f00 JavaThread "PeerControlScheduler" daemon [_thread_blocked, id=2572]
    0x03feb800 JavaThread "TCPProtocolDecoder:timer" daemon [_thread_blocked, id=3140]
    0x04034800 JavaThread "DiskM:ListenAggregatorDispatcher" daemon [_thread_blocked, id=2988]
    0x041b5200 JavaThread "DMC:DiskListenAgregatorDispatcher" daemon [_thread_blocked, id=1128]
    0x0488b700 JavaThread "Timer:Tracker Timer" daemon [_thread_blocked, id=2612]
    0x0487a300 JavaThread "DM:ListenAggregatorDispatcher" daemon [_thread_blocked, id=3364]
    0x0488c500 JavaThread "Timer:Plugin azrating:Ratings Update" daemon [_thread_blocked, id=2704]
    0x04885900 JavaThread "Timer:Plugin azbpdhdtracker:DHT Tracker" daemon [_thread_blocked, id=2472]
    0x00dca900 JavaThread "Timer:Plugin azbpdht:DHTExport" daemon [_thread_blocked, id=2272]
    0x047fa800 JavaThread "Timer:DHTControl:stats" daemon [_thread_blocked, id=2544]
    0x03ff2100 JavaThread "Timer:DHT:bloomRebuilder" daemon [_thread_blocked, id=2020]
    0x0474ef00 JavaThread "Timer:DHT:cacheRepublisher" daemon [_thread_blocked, id=2732]
    0x04845300 JavaThread "Timer:DHT:originalRepublisher" daemon [_thread_blocked, id=2804]
    0x04150600 JavaThread "PRUDPPacketHandler:receiver" daemon [_thread_blocked, id=2216]
    0x040ef400 JavaThread "AWT-Windows" daemon [_thread_in_native, id=1004]
    0x04893a00 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=1504]
    0x040c9c00 JavaThread "Timer:Plugin azjpc:JPC Discovery Refresh" daemon [_thread_blocked, id=3004]
    0x040dc500 JavaThread "IPToHostNameResolver" daemon [_thread_blocked, id=2504]
    0x0a95e600 JavaThread "GUI updater" [_thread_blocked, id=320]
    0x0410c300 JavaThread "Timer:Plugin azbpdht:DHTExport" daemon [_thread_blocked, id=2536]
    0x04022200 JavaThread "PRUDPPacketHandler:sender" daemon [_thread_blocked, id=3856]
    0x046b2900 JavaThread "Timer:DHTControl:stats" daemon [_thread_blocked, id=3848]
    0x0401f300 JavaThread "Timer:DHT:bloomRebuilder" daemon [_thread_blocked, id=2824]
    0x0401f100 JavaThread "Timer:DHT:cacheRepublisher" daemon [_thread_blocked, id=2708]
    0x0489c400 JavaThread "Timer:DHT:originalRepublisher" daemon [_thread_blocked, id=3020]
    0x04886500 JavaThread "Timer:AggregatedList" daemon [_thread_blocked, id=920]
    0x04878300 JavaThread "PRUDPPacketReciever:49200" daemon [_thread_in_native, id=2964]
    0x0477d800 JavaThread "Timer:BufferPool Checker" daemon [_thread_blocked, id=4040]
    0x04890800 JavaThread "MCGroup:CtrlListener" daemon [_thread_in_native, id=3136]
    0x04881800 JavaThread "MCGroup:MCListener" daemon [_thread_in_native, id=2540]
    0x0488a800 JavaThread "Timer-1" daemon [_thread_blocked, id=1056]
    0x04764500 JavaThread "MagnetURIHandler" daemon [_thread_in_native, id=2432]
    0x0486d300 JavaThread "Timer:Plugin azbpdht:DHTStats" daemon [_thread_blocked, id=956]
    0x0485c700 JavaThread "HostNameToIPResolver" daemon [_thread_blocked, id=3148]
    0x04763e00 JavaThread "Timer-0" daemon [_thread_blocked, id=640]
    0x04763b00 JavaThread "TRHost:ListenDispatcher" daemon [_thread_blocked, id=3328]
    0x0476fb00 JavaThread "StatsWriter" daemon [_thread_blocked, id=2312]
    0x0476f800 JavaThread "Global Status Checker" [_thread_blocked, id=3948]
    0x0476c900 JavaThread "TRHost::stats.loop" daemon [_thread_blocked, id=2412]
    0x047b1d00 JavaThread "Tracker Scrape" daemon [_thread_blocked, id=2328]
    0x047c4800 JavaThread "CacheStatsAndCleaner" daemon [_thread_blocked, id=1764]
    0x048eb100 JavaThread "FMFileManager::closeQueueDispatcher" daemon [_thread_blocked, id=316]
    0x047fd800 JavaThread "Timer:Simple Timer" daemon [_thread_blocked, id=2640]
    0x04758d00 JavaThread "GM:ListenDispatcher" daemon [_thread_blocked, id=1748]
    0x04731a00 JavaThread "Start Server" daemon [_thread_in_native, id=2384]
    0x0471d700 JavaThread "ReadController:ReadProcessor" daemon [_thread_blocked, id=232]
    0x0471ca00 JavaThread "ReadController:ReadSelector" daemon [_thread_blocked, id=2496]
    0x04717700 JavaThread "WriteController:WriteProcessor" daemon [_thread_blocked, id=2408]
    0x04723c00 JavaThread "WriteController:WriteSelector" daemon [_thread_blocked, id=3312]
    0x04715f00 JavaThread "ServerSocketChecker" daemon [_thread_blocked, id=3776]
    0x046e9f00 JavaThread "VServerSelector:port49200" daemon [_thread_in_native, id=2980]
    0x046e9a00 JavaThread "ConnectDisconnectManager" daemon [_thread_blocked, id=2076]
    0x046e9200 JavaThread "AEThreadMonitor" daemon [_thread_blocked, id=2392]
    0x03ff8400 JavaThread "SystemTime" daemon [_thread_blocked, id=1040]
    0x00dbec00 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=3756]
    0x00dbc600 JavaThread "CompilerThread0" daemon [_thread_blocked, id=2364]
    0x00dbb700 JavaThread "Attach Listener" daemon [_thread_blocked, id=228]
    0x00dbac00 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=2332]
    0x00d81100 JavaThread "Finalizer" daemon [_thread_blocked, id=2616]
    0x00d7cf00 JavaThread "Reference Handler" daemon [_thread_blocked, id=2100]
    0x00996800 JavaThread "main" [_thread_in_native, id=3936]
    Other Threads:
    =>0x00d7bf00 VMThread [id=1652]
    0x00dc0000 WatcherThread [id=4048]
    VM state:at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: ([mutex/lock_event])
    [0x00995d58/0x00000108] Threads_lock - owner thread: 0x00d7bf00
    [0x00995ed8/0x00000144] Heap_lock - owner thread: 0x0476f800
    Heap
    def new generation total 2240K, used 155K [0x1e940000, 0x1eba0000, 0x1f310000)
    eden space 2048K, 0% used [0x1e940000, 0x1e940000, 0x1eb40000)
    from space 192K, 80% used [0x1eb70000, 0x1eb96da0, 0x1eba0000)
    to space 192K, 0% used [0x1eb40000, 0x1eb40000, 0x1eb70000)
    tenured generation total 29784K, used 29692K [0x1f310000, 0x21026000, 0x26940000)
    the space 29784K, 99% used [0x1f310000, 0x2100f100, 0x2100f200, 0x21026000)
    compacting perm gen total 12288K, used 10792K [0x26940000, 0x27540000, 0x2a940000)
    the space 12288K, 87% used [0x26940000, 0x273ca148, 0x273ca200, 0x27540000)
    ro space 8192K, 62% used [0x2a940000, 0x2ae47d88, 0x2ae47e00, 0x2b140000)
    rw space 12288K, 55% used [0x2b140000, 0x2b7f4368, 0x2b7f4400, 0x2bd40000)
    Dynamic libraries:
    0x00400000 - 0x00431000      C:\Program Files\Azureus\Azureus.exe
    0x7c910000 - 0x7c9c9000      C:\WINDOWS\system32\ntdll.dll
    0x7c800000 - 0x7c90c000      C:\WINDOWS\system32\kernel32.dll
    0x77da0000 - 0x77e4d000      C:\WINDOWS\system32\ADVAPI32.DLL
    0x77e50000 - 0x77ee1000      C:\WINDOWS\system32\RPCRT4.dll
    0x77ef0000 - 0x77f37000      C:\WINDOWS\system32\GDI32.dll
    0x77d10000 - 0x77da0000      C:\WINDOWS\system32\USER32.dll
    0x77be0000 - 0x77c38000      C:\WINDOWS\system32\msvcrt.dll
    0x7c9d0000 - 0x7d1f4000      C:\WINDOWS\system32\SHELL32.DLL
    0x77f40000 - 0x77fb6000      C:\WINDOWS\system32\SHLWAPI.dll
    0x76320000 - 0x7633d000      C:\WINDOWS\system32\IMM32.DLL
    0x77390000 - 0x77492000      C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2180_x-ww_a84f1ff9\comctl32.dll
    0x6d840000 - 0x6da69000      c:\program files\java\jre1.6.0\bin\client\jvm.dll
    0x76ae0000 - 0x76b0f000      C:\WINDOWS\system32\WINMM.dll
    0x7c3a0000 - 0x7c41b000      C:\WINDOWS\system32\MSVCP71.dll
    0x7c340000 - 0x7c396000      C:\WINDOWS\system32\MSVCR71.dll
    0x6d2f0000 - 0x6d2f8000      c:\program files\java\jre1.6.0\bin\hpi.dll
    0x76ba0000 - 0x76bab000      C:\WINDOWS\system32\PSAPI.DLL
    0x6d7f0000 - 0x6d7fc000      c:\program files\java\jre1.6.0\bin\verify.dll
    0x6d380000 - 0x6d3a1000      c:\program files\java\jre1.6.0\bin\java.dll
    0x6d830000 - 0x6d83f000      c:\program files\java\jre1.6.0\bin\zip.dll
    0x6d5f0000 - 0x6d603000      C:\Program Files\Java\jre1.6.0\bin\net.dll
    0x719d0000 - 0x719e7000      C:\WINDOWS\system32\WS2_32.dll
    0x719c0000 - 0x719c8000      C:\WINDOWS\system32\WS2HELP.dll
    0x00ff0000 - 0x01036000      C:\WINDOWS\system32\imon.dll
    0x719f0000 - 0x719fa000      C:\WINDOWS\system32\WSOCK32.dll
    0x77650000 - 0x77671000      C:\WINDOWS\system32\NTMARTA.DLL
    0x76f10000 - 0x76f3d000      C:\WINDOWS\system32\WLDAP32.dll
    0x774a0000 - 0x775dd000      C:\WINDOWS\system32\ole32.dll
    0x71b30000 - 0x71b43000      C:\WINDOWS\system32\SAMLIB.dll
    0x71970000 - 0x719b0000      C:\WINDOWS\system32\mswsock.dll
    0x5a4d0000 - 0x5a529000      C:\WINDOWS\system32\hnetcfg.dll
    0x719b0000 - 0x719b8000      C:\WINDOWS\System32\wshtcpip.dll
    0x10000000 - 0x10012000      C:\Program Files\Azureus\aereg.dll
    0x5b070000 - 0x5b0a8000      C:\WINDOWS\system32\uxtheme.dll
    0x6d7d0000 - 0x6d7d8000      C:\Program Files\Java\jre1.6.0\bin\sunmscapi.dll
    0x779c0000 - 0x77a55000      C:\WINDOWS\system32\CRYPT32.dll
    0x77a60000 - 0x77a72000      C:\WINDOWS\system32\MSASN1.dll
    0x6d500000 - 0x6d509000      C:\Program Files\Java\jre1.6.0\bin\management.dll
    0x74680000 - 0x746cb000      C:\WINDOWS\system32\MSCTF.dll
    0x75470000 - 0x7549e000      C:\WINDOWS\system32\msctfime.ime
    0x6d610000 - 0x6d619000      C:\Program Files\Java\jre1.6.0\bin\nio.dll
    0x0ffd0000 - 0x0fff8000      C:\WINDOWS\system32\rsaenh.dll
    0x76960000 - 0x76a15000      C:\WINDOWS\system32\USERENV.dll
    0x61150000 - 0x611a4000      C:\WINDOWS\system32\netapi32.dll
    0x05e60000 - 0x05eb0000      C:\Program Files\Azureus\swt-win32-3139.dll
    0x76340000 - 0x7638a000      C:\WINDOWS\system32\comdlg32.dll
    0x770e0000 - 0x7716c000      C:\WINDOWS\system32\OLEAUT32.dll
    0x75770000 - 0x757db000      C:\WINDOWS\system32\USP10.dll
    0x76ed0000 - 0x76ef7000      C:\WINDOWS\system32\DNSAPI.dll
    0x76f60000 - 0x76f68000      C:\WINDOWS\System32\winrnr.dll
    0x76f70000 - 0x76f76000      C:\WINDOWS\system32\rasadhlp.dll
    0x76d10000 - 0x76d29000      C:\WINDOWS\system32\iphlpapi.dll
    0x76cf0000 - 0x76d08000      C:\WINDOWS\system32\MPRAPI.dll
    0x77c90000 - 0x77cc3000      C:\WINDOWS\system32\ACTIVEDS.dll
    0x76dc0000 - 0x76de5000      C:\WINDOWS\system32\adsldpc.dll
    0x76ac0000 - 0x76ad1000      C:\WINDOWS\system32\ATL.DLL
    0x76e30000 - 0x76e3e000      C:\WINDOWS\system32\rtutils.dll
    0x778c0000 - 0x779b8000      C:\WINDOWS\system32\SETUPAPI.dll
    0x097a0000 - 0x09a7c000      C:\WINDOWS\system32\xpsp2res.dll
    0x74be0000 - 0x74c0c000      C:\WINDOWS\system32\oleacc.dll
    0x76000000 - 0x76065000      C:\WINDOWS\system32\MSVCP60.dll
    0x76310000 - 0x76315000      C:\WINDOWS\system32\msimg32.dll
    0x6d000000 - 0x6d1ba000      C:\Program Files\Java\jre1.6.0\bin\awt.dll
    0x72f40000 - 0x72f66000      C:\WINDOWS\system32\WINSPOOL.DRV
    0x736a0000 - 0x736e9000      C:\WINDOWS\system32\ddraw.dll
    0x73b00000 - 0x73b06000      C:\WINDOWS\system32\DCIMAN32.dll
    0x73880000 - 0x73950000      C:\WINDOWS\system32\D3DIM700.DLL
    0x77b30000 - 0x77b52000      C:\WINDOWS\system32\appHelp.dll
    0x76f80000 - 0x76fff000      C:\WINDOWS\system32\CLBCATQ.DLL
    0x77000000 - 0x770d8000      C:\WINDOWS\system32\COMRes.dll
    0x77bd0000 - 0x77bd8000      C:\WINDOWS\system32\VERSION.dll
    0x76930000 - 0x76956000      C:\WINDOWS\system32\ntshrui.dll
    0x75db0000 - 0x75e41000      C:\WINDOWS\system32\MLANG.dll
    VM Arguments:
    jvm_args: -Dexe4j.moduleName=c:\progra~1\azureus\azureus.exe -Dexe4j.tempDir=C:\DOCUME~1\Kostas\LOCALS~1\Temp\e4jEED.tmp_dir25092 -Xmx128m -Duser.dir=c:\progra~1\azureus\ -Dazureus.nativelauncher=1
    java_command: <unknown>
    Launcher Type: generic
    Environment Variables:
    CLASSPATH=C:\Program Files\Java\jre1.6.0\lib\ext\QTJava.zip
    PATH=c:\progra~1\azureus\.\.;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\QuickTime\QTSystem\
    USERNAME=Kostas
    OS=Windows_NT
    PROCESSOR_IDENTIFIER=x86 Family 6 Model 8 Stepping 1, AuthenticAMD
    --------------- S Y S T E M ---------------
    OS: Windows XP Build 2600 Service Pack 2
    CPU:total 1 family 6, cmov, cx8, fxsr, mmx, sse, mmxext, 3dnowext, 3dnow
    Memory: 4k page, physical 523760k(189996k free), swap 711980k(439136k free)
    vm_info: Java HotSpot(TM) Client VM (1.6.0-beta-b59g) for windows-x86, built on Feb 6 2006 15:20:01 by "java_re" with unknown MS VC++:1310

    hey it seems that i found some solution. it seems that JRE conflicts with JVM from microsoft. i read somewhere to deactivate an option on IE advance settings which says not to use JRE 1.6.0 for applets. so it solved Azureus crashes and socket faulty selector
    Message was edited by:
    FarCry

  • How to use wait/nofity in socket server

    Dear all
    that is one of sample code from a book which's use mutil connection with socket program , but i if it is possible to use wait and nofity to controle client activety by wait and notify in this sample code ?
    some idea hope someone give me a help please
    import java.net.*;
    import java.io.*;
    * Threaded Echo Server, pre-allocation scheme.
    * Each Thread waits in its accept() call for a connection; this synchronizes
    * on the serversocket when calling its accept() method.
    * @author Ian F. Darwin.
    public class EchoServerThreaded2 {
         public static final int ECHOPORT = 7;
         public static final int NUM_THREADS = 4;
         /** Main method, to start the servers. */
         public static void main(String[] av)
              new EchoServerThreaded2(ECHOPORT, NUM_THREADS);
         /** Constructor */
         public EchoServerThreaded2(int port, int numThreads)
              ServerSocket servSock;
              Socket clientSocket;
              try {
                   servSock = new ServerSocket(ECHOPORT);
              } catch(IOException e) {
                   /* Crash the server if IO fails. Something bad has happened */
                   System.err.println("Could not create ServerSocket " + e);
                   System.exit(1);
                   return;     /*NOTREACHED*/
              // Create a series of threads and start them.
              for (int i=0; i<numThreads; i++) {
                   new Thread(new Handler(servSock, i)).start();
         /** A Thread subclass to handle one client conversation. */
         class Handler extends Thread {
              ServerSocket servSock;
              int threadNumber;
              /** Construct a Handler. */
              Handler(ServerSocket s, int i) {
                   super();
                   servSock = s;
                   threadNumber = i;
                   setName("Thread " + threadNumber);
              public void run()
                   /* Wait for a connection. Synchronized on the ServerSocket
                    * while calling its accept() method. */
                   while (true){
                        try {
                             System.out.println( getName() + " waiting");
                             Socket clientSocket;
                             // Wait here for the next connection.
                             synchronized(servSock) {
                                  clientSocket = servSock.accept();
                             System.out.println(getName() + " starting, IP=" +
                                  clientSocket.getInetAddress());
                             DataInputStream is = new DataInputStream(
                                  clientSocket.getInputStream());
                             PrintStream os = new PrintStream(
                                  clientSocket.getOutputStream(), true);
                             String line;
                             while ((line = is.readLine()) != null) {
                                  os.print(line + "\r\n");
                                  os.flush();
                             System.out.println(getName() + " ENDED ");
                             clientSocket.close();
                        } catch (IOException ex) {
                             System.out.println(getName() + ": IO Error on socket " + ex);
                             return;
    }if i add end of my code like this and then the error message indicat that
    java.lang.IllegalMonitorStateException: current thread not owner
    try{
                        clientSocket.wait();
                 }catch(InterruptedException e){
                                              clientSocket.close();
                                              clientSocket.notify();
                                            }

    Why? Closing the socket will cause the client to return from reading the socket with a null or zero or EOFException. You don't need anything else.
    In any case notifying the clientSocket will only wakeup threads in the current JVM that are waiting on it. This mechanism isn't magic, and it can't wake up another JVM.

  • Communication between JVMs..

    Goodmornig to everybody!
    My name is Giorgio and i'm a Java programmer. I have this problem: i have a java application already running on my OS; some time later i have to invoke a method of the java application by another minijavaapplication running in another JVM, but on the same host.
    Is it possible? which technology have i to study???
    thanks in advance
    Giorgio

    Goodmornig to everybody!
    My name is Giorgio and i'm a Java programmer. I have
    this problem: i have a java application already
    running on my OS; some time later i have to invoke a
    method of the java application by another
    minijavaapplication running in another JVM, but on
    the same host.
    Is it possible? which technology have i to study???
    thanks in advanceCan you modify the first application?
    If yes then you need to provide output. Either via sockets or a file.
    The second app uses this.
    If no then it is much more difficult. You must use whatever the first app does put out. And, unless it provides the above solution already (socket/file) with everything you need then it is going to be very difficult to get what you want using just java. Might not be possible at all.

Maybe you are looking for

  • Migrating OBIEE Repfrom Oracle database to SQL server database in Solaris.

    Hi, I need inputs in how we would migrate our connections in Repository from Oracle database to SQL server database in Sloaris server. Is there a complication here. Regards, Bhavik

  • Cannot click pause in youtube

    Starting today 10-3-2014 i am unable to click on any youtube video window at all and interact (pause play volume etc) and have not been able to fix it via reinstalling adobe flash or firefox or restarting my computer. what is causing this?

  • BC for HR module

    Hello,   Does anyone knows an internet site, or othe way where i can study Abap development for the Human Resources module.   I don't have knowns about programing infotypes, and clusters. I heard that the development is different than the usual Abap,

  • New computer, purchase new license?

    I currently have LR and PSE on a PC.  It is the only computer I have ever installed it on.  If I purchase a Mac will I need to purchase these programs again or will I be able to load them onto it.  I would no longer be using my PC.

  • Enabling "Forced Parameterization" on a sql 2008 DB.....

    We have a relatively high re-compilation rate of several Adhoc queries for a given DB. It has been suggested that we enable the DB "Forced Parameterization"  option for that DB. Supposedly, then, even if the Adhoc queries specify different values the