Socket Exception
Hello,
I am using weblogic 7.0. When Ia m loading the JSP in specific case I am getting
the error as
'java.net.SocketException: Connection reset by peer: socket write error'.
Same Page is working when I am loading in different scenario.
Is any idea?
Thanks,
Kavitha.
Hi,
this kind of messages can be forced, by e.g. hitting the stop
button or killing the browser instance during loading the
JSP side.
This is normal behaviour, this message only shows when a client
vanishes.
Christian Plenagl
Developer Relations Engineer
BEA Support
"Kavitha" <[email protected]> wrote:
>
Hello,
I am using weblogic 7.0. When Ia m loading the JSP in specific case
I am getting
the error as
'java.net.SocketException: Connection reset by peer: socket write error'.
Same Page is working when I am loading in different scenario.
Is any idea?
Thanks,
Kavitha.
Similar Messages
-
Socket Exception in Admin Server Logs
Hi All,
We are facing a socket exception in Admin Server log. PFB for the exception logs:
[2011-12-26T00:36:21.793-06:00] [AdminServer] [WARNING] [] [oracle.adfinternal.view.faces.renderkit.rich.TreeRendererUtils] [tid: [ACTIVE].ExecuteThread: '44' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: weblogic] [ecid: 0000JHt5O2e6yGD_n95EiZ1Ev5590005ms,0] [APP: em] [dcid: 88568bb1654f17ca:22e22403:1344b1dc283:-7ffe-0000000000042162] Context menu child is not a RichMenu
[2011-12-26T00:39:05.574-06:00] [AdminServer] [ERROR] [] [oracle.adfinternal.view.faces.config.rich.RegistrationConfigurator] [tid: [ACTIVE].ExecuteThread: '44' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: weblogic] [ecid: 0000JHt60Xn6yGD_n95EiZ1Ev5590005nI,0] [APP: em] [dcid: 88568bb1654f17ca:22e22403:1344b1dc283:-7ffe-0000000000042182] Server Exception during PPR, #126[[
java.net.SocketException: Write failed: Broken pipe
at jrockit.net.SocketNativeIO.writeBytesPinned(Native Method)
at jrockit.net.SocketNativeIO.socketWrite(SocketNativeIO.java:46)
at java.net.SocketOutputStream.socketWrite0(SocketOutputStream.java)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at weblogic.servlet.internal.ChunkOutput.writeChunkTransfer(ChunkOutput.java:507)
at weblogic.servlet.internal.ChunkOutput.writeChunks(ChunkOutput.java:486)
at weblogic.servlet.internal.ChunkOutput.flush(ChunkOutput.java:382)
at weblogic.servlet.internal.CharsetChunkOutput.flush(CharsetChunkOutput.java:313)
at weblogic.servlet.internal.ChunkOutputWrapper.flush(ChunkOutputWrapper.java:174)
at weblogic.servlet.internal.ServletOutputStreamImpl.flush(ServletOutputStreamImpl.java:111)
at weblogic.servlet.internal.ServletResponseImpl.flushBuffer(ServletResponseImpl.java:185)
at javax.servlet.ServletResponseWrapper.flushBuffer(ServletResponseWrapper.java:176)
at javax.servlet.ServletResponseWrapper.flushBuffer(ServletResponseWrapper.java:176)
at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:229)
at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:189)
at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:193)
at oracle.sysman.emSDK.adfext.ctlr.EMViewHandlerImpl.renderView(EMViewHandlerImpl.java:149)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:710)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:273)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:205)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.help.web.rich.OHWFilter.doFilter(Unknown Source)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.sysman.emSDK.license.LicenseFilter.doFilter(LicenseFilter.java:164)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.sysman.emas.fwk.MASConnectionFilter.doFilter(MASConnectionFilter.java:41)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:159)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.sysman.eml.app.AuditServletFilter.doFilter(AuditServletFilter.java:179)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.sysman.eml.app.EMRepLoginFilter.doFilter(EMRepLoginFilter.java:203)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.sysman.core.app.perf.PerfFilter.doFilter(PerfFilter.java:141)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.sysman.eml.app.ContextInitFilter.doFilter(ContextInitFilter.java:542)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
[2011-12-26T00:39:07.687-06:00] [AdminServer] [WARNING] [] [oracle.adfinternal.view.faces.renderkit.rich.TreeRendererUtils] [tid: [ACTIVE].ExecuteThread: '44' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: weblogic] [ecid: 0000JHt60co6yGD_n95EiZ1Ev5590005nJ,0] [APP: em] [dcid: 88568bb1654f17ca:22e22403:1344b1dc283:-7ffe-0000000000042183] Context menu child is not a RichMenu
[2011-12-26T00:41:42.485-06:00] [AdminServer] [WARNING] [] [oracle.adfinternal.view.faces.renderkit.rich.TreeRendererUtils] [tid: [ACTIVE].ExecuteThread: '65' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: weblogic] [ecid: 0000JHt6aR46yGD_n95EiZ1Ev5590005na,0] [APP: em] [dcid: 88568bb1654f17ca:22e22403:1344b1dc283:-7ffe-0000000000042198] Context menu child is not a RichMenu
[2011-12-26T10:30:56.963-06:00] [AdminServer] [WARNING] [] [org.apache.myfaces.trinidad.webapp.ResourceServlet] [tid: [ACTIVE].ExecuteThread: '30' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: weblogic] [ecid: 0000JHvDUMs6yGD_n95EiZ1Ev5590005q5,0] [APP: em] [dcid: 88568bb1654f17ca:22e22403:1344b1dc283:-7ffe-0000000000046718] ResourceServlet._setHeaders(): Content type for /bi/jsLibs/engine_20100410.swf is NULL![[
Cause: Unknown file extension
Kindly provide us a solution to avoid this issue.
Thanks & Regards,
PrabhuIt seems that chunking is causing the issue. In the HTTP Transport Configuration Options of your business service, disable the setting "Use Chunked Streaming Mode"
Regards,
Anuj -
Socket Exception in Oc4j to OID server communication
Hi,
Problem statement -
We have a custom JAAS login module running in oracle 10g( version-10.1.3) server and which authenticates the loged in user against oracle LDAP server(version-10.1.4 ), which is running in a separate machine. We are getting some socket exception after couple of hours, the complete stack trace is listed below. We are using ldap pooling and closing the context properly along with other resources which are opened. i am finding difficulty to resolve the issue, appreciate if any one has any idea to resolve it
Stack Trace
26332728 [AJPRequestHandler-HTTPThreadGroup-12] INFO com.hp.dit.ldap.LDAPManagerImpl - dit exception in validating user
com.hp.dit.exception.DITLDAPException: 030001
at com.hp.dit.ldap.LDAPManagerImpl.getUserDN(LDAPManagerImpl.java:159)
at com.hp.dit.ldap.LDAPManagerImpl.isValidUser(LDAPManagerImpl.java:176)
at com.hp.dit.ldap.DITLoginModule.login(DITLoginModule.java:131)
at sun.reflect.GeneratedMethodAccessor34.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
at oracle.security.jazn.oc4j.OC4JUtil.doJAASLogin(OC4JUtil.java:241)
at oracle.security.jazn.oc4j.GenericUser$1.run(JAZNUserManager.java:818)
at oracle.security.jazn.oc4j.OC4JUtil.doWithJAZNClsLdr(OC4JUtil.java:173)
at oracle.security.jazn.oc4j.GenericUser.authenticate(JAZNUserManager.java:814)
at oracle.security.jazn.oc4j.FilterUser.authenticate(JAZNUserManager.java:1143)
at com.evermind.server.http.EvermindHttpServletRequest.getUserPrincipalInternal(EvermindHttpServletRequest.java:3601)
at com.evermind.server.http.AJPHttpServletRequest.getUserPrincipalInternal(AJPHttpServletRequest.java:261)
at com.evermind.server.http.HttpApplication.checkAuthenticationAndAuthorize(HttpApplication.java:6332)
at com.evermind.server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:3009)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:736)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
Caused by: javax.naming.CommunicationException: Connection timed out [Root exception is java.net.SocketException: Connection timed out]; remaining name 'dc=dit,c=in'
at com.sun.jndi.ldap.LdapCtx.doSearch(LdapCtx.java:1961)
at com.sun.jndi.ldap.LdapCtx.searchAux(LdapCtx.java:1806)
at com.sun.jndi.ldap.LdapCtx.c_search(LdapCtx.java:1731)
at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_search(ComponentDirContext.java:368)
at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:338)
at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:321)
at javax.naming.directory.InitialDirContext.search(InitialDirContext.java:248)
at com.hp.dit.ldap.LDAPManagerImpl.getUserDN(LDAPManagerImpl.java:137)
... 30 more
Caused by: java.net.SocketException: Connection timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:256)
at java.io.BufferedInputStream.read(BufferedInputStream.java:313)
at com.sun.jndi.ldap.Connection.run(Connection.java:784)
... 1 more
26338902 [AJPRequestHandler-HTTPThreadGroup-40] INFO com.hp.dit.web.action.RegisterAction - day string in reg action *****03/01/1989
26338910 [AJPRequestHandler-HTTPThreadGroup-40] INFO com.hp.dit.web.action.RegisterAction - Register PAN VO is Not Nullcom.hp.dit.vo.PANRegVO@3a15bb
26349628 [AJPRequestHandler-HTTPThreadGroup-12] INFO com.hp.dit.ldap.LDAPManagerImpl - exception in getting user distinguished name
javax.naming.CommunicationException: Connection timed out [Root exception is java.net.SocketException: Connection timed out]; remaining name 'dc=dit,c=in'
at com.sun.jndi.ldap.LdapCtx.doSearch(LdapCtx.java:1961)
at com.sun.jndi.ldap.LdapCtx.searchAux(LdapCtx.java:1806)
at com.sun.jndi.ldap.LdapCtx.c_search(LdapCtx.java:1731)
at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_search(ComponentDirContext.java:368)
at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:338)
at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:321)
at javax.naming.directory.InitialDirContext.search(InitialDirContext.java:248)
at com.hp.dit.ldap.LDAPManagerImpl.getUserDN(LDAPManagerImpl.java:137)
at com.hp.dit.ldap.LDAPManagerImpl.isValidUser(LDAPManagerImpl.java:176)
at com.hp.dit.ldap.DITLoginModule.login(DITLoginModule.java:131)
at sun.reflect.GeneratedMethodAccessor34.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
at oracle.security.jazn.oc4j.OC4JUtil.doJAASLogin(OC4JUtil.java:241)
at oracle.security.jazn.oc4j.GenericUser$1.run(JAZNUserManager.java:818)
at oracle.security.jazn.oc4j.OC4JUtil.doWithJAZNClsLdr(OC4JUtil.java:173)
at oracle.security.jazn.oc4j.GenericUser.authenticate(JAZNUserManager.java:814)
at oracle.security.jazn.oc4j.FilterUser.authenticate(JAZNUserManager.java:1143)
at com.evermind.server.http.EvermindHttpServletRequest.getUserPrincipalInternal(EvermindHttpServletRequest.java:3601)
at com.evermind.server.http.AJPHttpServletRequest.getUserPrincipalInternal(AJPHttpServletRequest.java:261)
at com.evermind.server.http.HttpApplication.checkAuthenticationAndAuthorize(HttpApplication.java:6332)
at com.evermind.server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:3009)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:736)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.net.SocketException: Connection timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:256)
at java.io.BufferedInputStream.read(BufferedInputStream.java:313)
at com.sun.jndi.ldap.Connection.run(Connection.java:784)
... 1 more
26349629 [AJPRequestHandler-HTTPThreadGroup-12] INFO com.hp.dit.ldap.LDAPManagerImpl - dit exception in validating user
com.hp.dit.exception.DITLDAPException: 030001
at com.hp.dit.ldap.LDAPManagerImpl.getUserDN(LDAPManagerImpl.java:159)
at com.hp.dit.ldap.LDAPManagerImpl.isValidUser(LDAPManagerImpl.java:176)
at com.hp.dit.ldap.DITLoginModule.login(DITLoginModule.java:131)
at sun.reflect.GeneratedMethodAccessor34.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
at oracle.security.jazn.oc4j.OC4JUtil.doJAASLogin(OC4JUtil.java:241)
at oracle.security.jazn.oc4j.GenericUser$1.run(JAZNUserManager.java:818)
at oracle.security.jazn.oc4j.OC4JUtil.doWithJAZNClsLdr(OC4JUtil.java:173)
at oracle.security.jazn.oc4j.GenericUser.authenticate(JAZNUserManager.java:814)
at oracle.security.jazn.oc4j.FilterUser.authenticate(JAZNUserManager.java:1143)
at com.evermind.server.http.EvermindHttpServletRequest.getUserPrincipalInternal(EvermindHttpServletRequest.java:3601)
at com.evermind.server.http.AJPHttpServletRequest.getUserPrincipalInternal(AJPHttpServletRequest.java:261)
at com.evermind.server.http.HttpApplication.checkAuthenticationAndAuthorize(HttpApplication.java:6332)
at com.evermind.server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:3009)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:736)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
Caused by: javax.naming.CommunicationException: Connection timed out [Root exception is java.net.SocketException: Connection timed out]; remaining name 'dc=dit,c=in'
at com.sun.jndi.ldap.LdapCtx.doSearch(LdapCtx.java:1961)
at com.sun.jndi.ldap.LdapCtx.searchAux(LdapCtx.java:1806)
at com.sun.jndi.ldap.LdapCtx.c_search(LdapCtx.java:1731)
at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_search(ComponentDirContext.java:368)
at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:338)
at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:321)
at javax.naming.directory.InitialDirContext.search(InitialDirContext.java:248)
at com.hp.dit.ldap.LDAPManagerImpl.getUserDN(LDAPManagerImpl.java:137)
... 30 more
Caused by: java.net.SocketException: Connection timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:256)
at java.io.BufferedInputStream.read(BufferedInputStream.java:313)
at com.sun.jndi.ldap.Connection.run(Connection.java:784)
... 1 more
0 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
4 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
294 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='com.hp.dit.web.action.ApplicationResources', returnNull=true
451 [OC4J Launcher] INFO org.apache.struts.tiles.TilesPlugin - Tiles definition factory loaded for module ''.
560 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
561 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
872 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='com.knowtan.view.ApplicationResources', returnNull=true
8669 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
8669 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
9033 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='com.hp.dit.web.action.ApplicationResources', returnNull=true
9454 [OC4J Launcher] INFO org.apache.struts.tiles.TilesPlugin - Tiles definition factory loaded for module ''.
11036 [AJPRequestHandler-HTTPThreadGroup-4] INFO org.apache.struts.tiles.TilesRequestProcessor - Tiles definition factory found for request processor ''.
11329 [AJPRequestHandler-HTTPThreadGroup-5] INFO org.apache.struts.tiles.TilesRequestProcessor - Tiles definition factory found for request processor ''.
11435 [AJPRequestHandler-HTTPThreadGroup-5] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
11439 [AJPRequestHandler-HTTPThreadGroup-5] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
11464 [AJPRequestHandler-HTTPThreadGroup-6] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
11595 [AJPRequestHandler-HTTPThreadGroup-8] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
11604 [AJPRequestHandler-HTTPThreadGroup-8] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
11604 [AJPRequestHandler-HTTPThreadGroup-8] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
11607 [AJPRequestHandler-HTTPThreadGroup-8] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
11613 [AJPRequestHandler-HTTPThreadGroup-8] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
11615 [AJPRequestHandler-HTTPThreadGroup-8] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
11648 [AJPRequestHandler-HTTPThreadGroup-8] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
12881 [AJPRequestHandler-HTTPThreadGroup-5] ERROR org.apache.struts.action.RequestProcessor - Invalid path /downloads was requested
17516 [AJPRequestHandler-HTTPThreadGroup-4] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
17518 [AJPRequestHandler-HTTPThreadGroup-6] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
17538 [AJPRequestHandler-HTTPThreadGroup-4] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
0 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
4 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
18073 [AJPRequestHandler-HTTPThreadGroup-14] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.actions.LocalStrings', returnNull=true
18098 [AJPRequestHandler-HTTPThreadGroup-14] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
303 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='com.hp.dit.web.action.ApplicationResources', returnNull=true
457 [OC4J Launcher] INFO org.apache.struts.tiles.TilesPlugin - Tiles definition factory loaded for module ''.
560 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
560 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
857 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='com.knowtan.view.ApplicationResources', returnNull=true
8951 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
8952 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
9326 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='com.hp.dit.web.action.ApplicationResources', returnNull=true
9734 [OC4J Launcher] INFO org.apache.struts.tiles.TilesPlugin - Tiles definition factory loaded for module ''.
10874 [AJPRequestHandler-HTTPThreadGroup-4] INFO org.apache.struts.tiles.TilesRequestProcessor - Tiles definition factory found for request processor ''.
10907 [AJPRequestHandler-HTTPThreadGroup-4] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
10910 [AJPRequestHandler-HTTPThreadGroup-4] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
10934 [AJPRequestHandler-HTTPThreadGroup-4] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
11237 [AJPRequestHandler-HTTPThreadGroup-4] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
11246 [AJPRequestHandler-HTTPThreadGroup-4] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
11247 [AJPRequestHandler-HTTPThreadGroup-4] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
11250 [AJPRequestHandler-HTTPThreadGroup-4] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
11256 [AJPRequestHandler-HTTPThreadGroup-4] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
11258 [AJPRequestHandler-HTTPThreadGroup-4] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
11300 [AJPRequestHandler-HTTPThreadGroup-4] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
12583 [AJPRequestHandler-HTTPThreadGroup-4] INFO org.apache.struts.tiles.TilesRequestProcessor - Tiles definition factory found for request processor ''.
33404 [AJPRequestHandler-HTTPThreadGroup-11] INFO com.hp.dit.ldap.DITLoginModule - userRoleName govtadmin
33962 [AJPRequestHandler-HTTPThreadGroup-14] INFO com.hp.dit.ldap.DITLoginModule - userRoleName induser
16145 [AJPRequestHandler-HTTPThreadGroup-4] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
16148 [AJPRequestHandler-HTTPThreadGroup-4] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
16168 [AJPRequestHandler-HTTPThreadGroup-4] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
1 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
4 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
304 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='com.hp.dit.web.action.ApplicationResources', returnNull=true
458 [OC4J Launcher] INFO org.apache.struts.tiles.TilesPlugin - Tiles definition factory loaded for module ''.
561 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
562 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
857 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='com.knowtan.view.ApplicationResources', returnNull=true
41063 [AJPRequestHandler-HTTPThreadGroup-14] INFO com.hp.dit.ldap.DITLoginModule - userRoleName induser
41089 [AJPRequestHandler-HTTPThreadGroup-17] INFO com.hp.dit.web.action.RegisterAction - day string in reg action *****18/04/1958
41110 [AJPRequestHandler-HTTPThreadGroup-17] INFO com.hp.dit.web.action.RegisterAction - Register PAN VO is Not Nullcom.hp.dit.vo.PANRegVO@1426780
8845 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
8846 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
9209 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='com.hp.dit.web.action.ApplicationResources', returnNull=true
9636 [OC4J Launcher] INFO org.apache.struts.tiles.TilesPlugin - Tiles definition factory loaded for module ''.
12923 [AJPRequestHandler-HTTPThreadGroup-4] INFO org.apache.struts.tiles.TilesRequestProcessor - Tiles definition factory found for request processor ''.
12956 [AJPRequestHandler-HTTPThreadGroup-4] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
12959 [AJPRequestHandler-HTTPThreadGroup-4] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
12983 [AJPRequestHandler-HTTPThreadGroup-4] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
49394 [AJPRequestHandler-HTTPThreadGroup-11] INFO com.hp.dit.ldap.DITLoginModule - userRoleName induser
0 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
3 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
305 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='com.hp.dit.web.action.ApplicationResources', returnNull=true
54351 [AJPRequestHandler-HTTPThreadGroup-7] INFO com.hp.dit.web.action.RegisterAction - day string in reg action *****03/01/1989
54365 [AJPRequestHandler-HTTPThreadGroup-7] INFO com.hp.dit.web.action.RegisterAction - Register PAN VO is Not Nullcom.hp.dit.vo.PANRegVO@154598e
460 [OC4J Launcher] INFO org.apache.struts.tiles.TilesPlugin - Tiles definition factory loaded for module ''.
565 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
566 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
875 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='com.knowtan.view.ApplicationResources', returnNull=true
37396 [AJPRequestHandler-HTTPThreadGroup-4] INFO com.hp.dit.ldap.DITLoginModule - userRoleName induser
37412 [AJPRequestHandler-HTTPThreadGroup-4] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.actions.LocalStrings', returnNull=true
57805 [AJPRequestHandler-HTTPThreadGroup-12] INFO com.hp.dit.ldap.DITLoginModule - userRoleName induser
22424 [AJPRequestHandler-HTTPThreadGroup-5] INFO org.apache.struts.tiles.TilesRequestProcessor - Tiles definition factory found for request processor ''.
22449 [AJPRequestHandler-HTTPThreadGroup-5] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
22452 [AJPRequestHandler-HTTPThreadGroup-5] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
22472 [AJPRequestHandler-HTTPThreadGroup-5] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
44494 [AJPRequestHandler-HTTPThreadGroup-8] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
8920 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
8921 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
9304 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='com.hp.dit.web.action.ApplicationResources', returnNull=true
9707 [OC4J Launcher] INFO org.apache.struts.tiles.TilesPlugin - Tiles definition factory loaded for module ''.
65228 [AJPRequestHandler-HTTPThreadGroup-12] INFO com.hp.dit.web.action.RegisterAction - day string in reg action *****26/11/1961
65238 [AJPRequestHandler-HTTPThreadGroup-12] INFO com.hp.dit.web.action.RegisterAction - Register PAN VO is Not Nullcom.hp.dit.vo.PANRegVO@1c7d395
11721 [AJPRequestHandler-HTTPThreadGroup-4] INFO org.apache.struts.tiles.TilesRequestProcessor - Tiles definition factory found for request processor ''.
11893 [AJPRequestHandler-HTTPThreadGroup-4] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
11896 [AJPRequestHandler-HTTPThreadGroup-4] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
11919 [AJPRequestHandler-HTTPThreadGroup-4] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
70517 [AJPRequestHandler-HTTPThreadGroup-12] INFO com.hp.dit.web.action.MyAccountMenuAction - Exception Inside MyAccountActionoracle.oc4j.rmi.OracleRemoteException: com.hp.dit.exception.ToplinkRuntimeException: 040001; nested exception is:
com.hp.dit.exception.ToplinkRuntimeException: 040001
19299 [AJPRequestHandler-HTTPThreadGroup-5] INFO org.apache.struts.tiles.TilesRequestProcessor - Tiles definition factory found for request processor ''.
73771 [AJPRequestHandler-HTTPThreadGroup-4] INFO com.hp.dit.ldap.LDAPManagerImpl - Authentication failure in LDAP in context look up
javax.naming.AuthenticationException: [LDAP: error code 49 - Invalid Credentials]
at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:2985)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2931)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2732)
at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2646)
at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:283)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:175)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:193)
at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:136)
at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:66)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.<init>(InitialContext.java:197)
at javax.naming.directory.InitialDirContext.<init>(InitialDirContext.java:82)
at com.hp.dit.ldap.LDAPManagerImpl.getDirectoryContext(LDAPManagerImpl.java:87)
at com.hp.dit.ldap.LDAPManagerImpl.isValidUser(LDAPManagerImpl.java:179)
at com.hp.dit.ldap.DITLoginModule.login(DITLoginModule.java:131)
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 javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
at oracle.security.jazn.oc4j.OC4JUtil.doJAASLogin(OC4JUtil.java:241)
at oracle.security.jazn.oc4j.GenericUser$1.run(JAZNUserManager.java:818)
at oracle.security.jazn.oc4j.OC4JUtil.doWithJAZNClsLdr(OC4JUtil.java:173)
at oracle.security.jazn.oc4j.GenericUser.authenticate(JAZNUserManager.java:814)
at oracle.security.jazn.oc4j.FilterUser.authenticate(JAZNUserManager.java:1143)
at com.evermind.server.http.EvermindHttpServletRequest.getUserPrincipalInternal(EvermindHttpServletRequest.java:3601)
at com.evermind.server.http.AJPHttpServletRequest.getUserPrincipalInternal(AJPHttpServletRequest.java:261)
at com.evermind.server.http.HttpApplication.checkAuthenticationAndAuthorize(HttpApplication.java:6332)
at com.evermind.server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:3009)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:736)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
73775 [AJPRequestHandler-HTTPThreadGroup-4] INFO com.hp.dit.ldap.LDAPManagerImpl - dit exception in validating user
com.hp.dit.exception.DITLDAPException: 030002
at com.hp.dit.ldap.LDAPManagerImpl.getDirectoryContext(LDAPManagerImpl.java:101)
at com.hp.dit.ldap.LDAPManagerImpl.isValidUser(LDAPManagerImpl.java:179)
at com.hp.dit.ldap.DITLoginModule.login(DITLoginModule.java:131)
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 javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
at oracle.security.jazn.oc4j.OC4JUtil.doJAASLogin(OC4JUtil.java:241)
at oracle.security.jazn.oc4j.GenericUser$1.run(JAZNUserManager.java:818)
at oracle.security.jazn.oc4j.OC4JUtil.doWithJAZNClsLdr(OC4JUtil.java:173)
at oracle.security.jazn.oc4j.GenericUser.authenticate(JAZNUserManager.java:814)
at oracle.security.jazn.oc4j.FilterUser.authenticate(JAZNUserManager.java:1143)
at com.evermind.server.http.EvermindHttpServletRequest.getUserPrincipalInternal(EvermindHttpServletRequest.java:3601)
at com.evermind.server.http.AJPHttpServletRequest.getUserPrincipalInternal(AJPHttpServletRequest.java:261)
at com.evermind.server.http.HttpApplication.checkAuthenticationAndAuthorize(HttpApplication.java:6332)
at com.evermind.server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:3009)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:736)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
Caused by: javax.naming.AuthenticationException: [LDAP: error code 49 - Invalid Credentials]
at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:2985)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2931)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2732)
at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2646)
at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:283)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:175)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:193)
at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:136)
at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:66)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.<init>(InitialContext.java:197)
at javax.naming.directory.InitialDirContext.<init>(InitialDirContext.java:82)
at com.hp.dit.ldap.LDAPManagerImpl.getDirectoryContext(LDAPManagerImpl.java:87)
... 31 more
78597 [AJPRequestHandler-HTTPThreadGroup-7] INFO com.hp.dit.web.action.RegisterAction - day string in reg action *****03/11/1971
78607 [AJPRequestHandler-HTTPThreadGroup-7] INFO com.hp.dit.web.action.RegisterAction - Register PAN VO is Not Nullcom.hp.dit.vo.PANRegVO@116ce6e
26439 [AJPRequestHandler-HTTPThreadGroup-6] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
26441 [AJPRequestHandler-HTTPThreadGroup-6] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
26461 [AJPRequestHandler-HTTPThreadGroup-6] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
83344 [AJPRequestHandler-HTTPThreadGroup-5] INFO com.hp.dit.web.action.RegisterAction - day string in reg action *****18/04/1958
83356 [AJPRequestHandler-HTTPThreadGroup-5] INFO com.hp.dit.web.action.RegisterAction - Register PAN VO is Not Nullcom.hp.dit.vo.PANRegVO@1074641
83612 [AJPRequestHandler-HTTPThreadGroup-7] INFO com.hp.dit.web.action.RegisterAction - day string in reg action *****16/09/1986
83623 [AJPRequestHandler-HTTPThreadGroup-7] INFO com.hp.dit.web.action.RegisterAction - Register PAN VO is Not Nullcom.hp.dit.vo.PANRegVO@1155331
92047 [AJPRequestHandler-HTTPThreadGroup-15] INFO com.hp.dit.ldap.DITLoginModule - userRoleName induser
96447 [AJPRequestHandler-HTTPThreadGroup-17] INFO com.hp.dit.web.action.MyAccountMenuAction - Exception Inside MyAccountActionoracle.oc4j.rmi.OracleRemoteException: com.hp.dit.exception.ToplinkRuntimeException: 040001; nested exception is:
com.hp.dit.exception.ToplinkRuntimeException: 040001
50870 [AJPRequestHandler-HTTPThreadGroup-5] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
50880 [AJPRequestHandler-HTTPThreadGroup-5] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
50880 [AJPRequestHandler-HTTPThreadGroup-5] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
50883 [AJPRequestHandler-HTTPThreadGroup-5] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
50889 [AJPRequestHandler-HTTPThreadGroup-5] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
50891 [AJPRequestHandler-HTTPThreadGroup-5] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
50918 [AJPRequestHandler-HTTPThreadGroup-5] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
109405 [AJPRequestHandler-HTTPThreadGroup-4] INFO com.hp.dit.ldap.LDAPManagerImpl - UserID not found in search
118815 [AJPRequestHandler-HTTPThreadGroup-19] INFO com.hp.dit.web.action.RegisterAction - day string in reg action *****28/11/1961
118826 [AJPRequestHandler-HTTPThreadGroup-19] INFO com.hp.dit.web.action.RegisterAction - Register PAN VO is Not Nullcom.hp.dit.vo.PANRegVO@1ba18ce
121088 [AJPRequestHandler-HTTPThreadGroup-19] INFO com.hp.dit.web.action.MyAccountMenuAction - Exception Inside MyAccountActionoracle.oc4j.rmi.OracleRemoteException: com.hp.dit.exception.ToplinkRuntimeException: 040001; nested exception is:
com.hp.dit.exception.ToplinkRuntimeException: 040001
87244 [AJPRequestHandler-HTTPThreadGroup-8] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
87254 [AJPRequestHandler-HTTPThreadGroup-8] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
87254 [AJPRequestHandler-HTTPThreadGroup-8] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
87257 [AJPRequestHandler-HTTPThreadGroup-8] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
87264 [AJPRequestHandler-HTTPThreadGroup-8] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
87267 [AJPRequestHandler-HTTPThreadGroup-8] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
87274 [AJPRequestHandler-HTTPThreadGroup-8] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
124169 [AJPRequestHandler-HTTPThreadGroup-23] INFO com.hp.dit.ldap.LDAPManagerImpl - UserID not found in search
125928 [AJPRequestHandler-HTTPThreadGroup-23] INFO com.hp.dit.ldap.LDAPManagerImpl - UserID not found in search
91938 [AJPRequestHandler-HTTPThreadGroup-9] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.actions.LocalStrings', returnNull=true
92057 [AJPRequestHandler-HTTPThreadGroup-9] INFO com.hp.dit.web.action.RegisterAction - day string in reg action *****03/04/1951
92281 [AJPRequestHandler-HTTPThreadGroup-9] INFO com.hp.dit.web.action.RegisterAction - Register PAN VO is Not Nullcom.hp.dit.vo.PANRegVO@177e3d4
92301 [AJPRequestHandler-HTTPThreadGroup-9] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
114238 [AJPRequestHandler-HTTPThreadGroup-11] INFO com.hp.dit.web.action.RegisterAction - day string in reg action *****21/02/1960
114442 [AJPRequestHandler-HTTPThreadGroup-11] INFO com.hp.dit.web.action.RegisterAction - Register PAN VO is Not Nullcom.hp.dit.vo.PANRegVO@17a64f2
135185 [AJPRequestHandler-HTTPThreadGroup-25] INFO com.hp.dit.web.action.RegisterAction - day string in reg action *****03/11/1927
135208 [AJPRequestHandler-HTTPThreadGroup-25] INFO com.hp.dit.web.action.RegisterAction - Register PAN VO is Not Nullcom.hp.dit.vo.PANRegVO@1dbda4f
139243 [AJPRequestHandler-HTTPThreadGroup-25] INFO com.hp.dit.ldap.DITLoginModule - userRoleName induser
154238 [AJPRequestHandler-HTTPThreadGroup-28] INFO com.hp.dit.web.action.RegisterAction - day string in reg action *****30/12/1971
154253 [AJPRequestHandler-HTTPThreadGroup-28] INFO com.hp.dit.web.action.RegisterAction - Register PAN VO is Not Nullcom.hp.dit.vo.PANRegVO@acb798
190846 [AJPRequestHandler-HTTPThreadGroup-4] INFO com.hp.dit.ldap.DITLoginModule - userRoleName induserRaj,
Thanks for your answer. It solved my problem. Thanks you very much.
Thanks,
Madhu. -
Jwsdp: after more than one day live the server send a socket exception.
Hello,
I built a beginning of an application using bookstore2 as a template. The main difference is that I am using mysql DBMS. The application runs fine, but when I leave the server running overnight, the following day I get this error:
Your request cannot be completed. The server got the following error:
Communication link failure: java.net.SocketException
every time I use a jsp involved in the database access. The other jsps like cart checking are working fine.
I checked the database server (even thru a socket), it works fine and worse, manager: a context not depending on the database doesn't work anymore when I try to use ant reload I get this error:
/home/jeanct/jwsdp/dvl/dciweb/build.xml:62: java.io.IOException: Server returned HTTP response code: 401 for URL: http://localhost:8080/manager/reload?path=%2Fdciweb
After a server shutdown and a startup it works fine again.
Thank you if you can give me any clue
Jean-Claude Tebbal
Senior Analyst progammer
DCI ltd UK
PS:
here follow the application context an logs:
Property Value
JNDI Name: Localwebdb
Data Source URL: jdbc:mysql://localhost:3306/dciweb
JDBC Driver Class: org.gjt.mm.mysql.Driver
User Name: root
Password: *********
Max. Active Connections: 4
Max. Idle Connections: 2
Max. Wait for Connection: 5000
context.xml
<Context path="/dciweb" docBase="../dvl/dciweb/build" debug="0">
<ResourceLink name="jdbc/dciweb" global="Localwebdb" />
</Context>
logs:
access_log.2002-10-16.txt:
127.0.0.1 - - [16/Oct/2002:09:56:40 00] "GET /dciweb/ HTTP/1.1" 302 -
127.0.0.1 - - [16/Oct/2002:09:56:42 00] "GET /dciweb/index.jsp HTTP/1.1" 200 -
127.0.0.1 - - [16/Oct/2002:09:56:42 00] "GET /dciweb/browser_checker.js HTTP/1.1" 304 -
127.0.0.1 - - [16/Oct/2002:09:56:42 00] "GET /dciweb/start.jsp?browser=ok HTTP/1.1" 200 -
127.0.0.1 - - [16/Oct/2002:09:56:50 00] "GET /dciweb/offerlist.jsp HTTP/1.1" 200 -
catalina.out:
DbcpDataSourceFactory: driverClassName=com.informix.jdbc.IfxDriver, url=jdbc:informix-sqli://bti:3003/cell:INFORMIXSERVER=sh_bti, use
r=informix
DbcpDataSourceFactory: driverClassName=org.gjt.mm.mysql.Driver, url=jdbc:mysql://localhost:3306/dciweb, user=root
Starting service Internal Services
Java Web Services Developer Pack/1.0_01-fcs
Starting service Java Web Services Developer Pack
Java Web Services Developer Pack/1.0_01-fcs
jwsdp_log.2002-10-16.txt:
2002-10-16 09:24:34 jsp: init
2002-10-16 09:30:51 jsp: init
2002-10-16 09:56:42 jsp: init
2002-10-16 09:56:50 jsp: init
localhost_admin_log.2002-10-16.txt:
2002-10-16 09:49:29 jsp: init
2002-10-16 09:49:37 jsp: init
2002-10-16 09:49:52 jsp: init
2002-10-16 09:49:54 jsp: init
2002-10-16 09:49:55 jsp: init
2002-10-16 09:49:59 jsp: init
2002-10-16 09:50:02 action: Entered TreeControlTestAction:perform()
2002-10-16 09:50:02 action: tree param is null
2002-10-16 09:50:02 action: Select event on Globally Administer Data Sources
2002-10-16 09:50:03 jsp: init
2002-10-16 09:50:11 jsp: init
services_log.2002-10-15.txt:
2002-10-15 13:26:43 WebappLoader[jaxm-provideradmin]: Deploying class repositories to work directory /home/jeanct/jwsdp/work/Services
Engine/jwsdp-services/jaxm-provideradmin
2002-10-15 13:26:43 WebappLoader[jaxm-provideradmin]: Deploy class files /WEB-INF/classes to /home/jeanct/jwsdp/services/jaxm-provide
radmin/WEB-INF/classes
2002-10-15 13:26:43 WebappLoader[jaxm-provideradmin]: Deploy JAR /WEB-INF/lib/provider.jar to /home/jeanct/jwsdp/services/jaxm-provid
eradmin/WEB-INF/lib/provider.jar
2002-10-15 13:26:43 WebappLoader[jaxm-provideradmin]: Deploy JAR /WEB-INF/lib/struts.jar to /home/jeanct/jwsdp/services/jaxm-provider
admin/WEB-INF/lib/struts.jar
2002-10-15 13:26:45 ContextConfig[jaxm-provideradmin]: WARNING: Security role name provider used in an <auth-constraint> without bein
g defined in a <security-role>
2002-10-15 13:26:47 ContextConfig[jaxm-provideradmin]: Configured an authenticator for method BASIC
2002-10-15 13:26:47 StandardManager[jaxm-provideradmin]: Seeding random number generator class java.security.SecureRandom
2002-10-15 13:26:47 StandardManager[jaxm-provideradmin]: Seeding of random number generator has been completed
2002-10-15 13:26:47 StandardWrapper[jaxm-provideradmin:default]: Loading container servlet default
2002-10-15 13:26:47 default: init
2002-10-15 13:26:47 StandardWrapper[jaxm-provideradmin:invoker]: Loading container servlet invoker
2002-10-15 13:26:47 invoker: init
2002-10-15 13:26:47 action: init
2002-10-15 13:26:49 jsp: init
2002-10-15 13:26:52 WebappLoader[jaxm-provider]: Deploying class repositories to work directory /home/jeanct/jwsdp/work/Services Engi
ne/jwsdp-services/jaxm-provider
2002-10-15 13:26:52 WebappLoader[jaxm-provider]: Deploy JAR /WEB-INF/lib/provider.jar to /home/jeanct/jwsdp/services/jaxm-provider/WE
B-INF/lib/provider.jar
2002-10-15 13:26:53 StandardManager[jaxm-provider]: Seeding random number generator class java.security.SecureRandom
2002-10-15 13:26:53 StandardManager[jaxm-provider]: Seeding of random number generator has been completed
2002-10-15 13:26:53 providerservlet: init
2002-10-15 13:26:54 StandardWrapper[jaxm-provider:default]: Loading container servlet default
2002-10-15 13:26:54 default: init
2002-10-15 13:26:54 StandardWrapper[jaxm-provider:invoker]: Loading container servlet invoker
2002-10-15 13:26:54 invoker: init
2002-10-15 13:26:54 receiverservlet: init
2002-10-15 13:26:54 jsp: init
2002-10-15 13:26:54 digest: initI found the answer to my question, I give it here for those using mysql as a DBMS.
Two variables in MySql have to be tuned: INTERACTIVE_TIMEOUT and WAIT_TIMEOUT. They default to 8 hours, so after 8 hours the two remaining idle connections were killed
and a socket exception was thrown to the first use of the connection pool. -
"Descriptor not a socket" - Exception
Hello,
my WebLogic 11 (10.3.6) throws sometime a Socket Exception:
<26.09.2012 14:27 Uhr MESZ> <Error> <Socket> <BEA-000403> <IOException occurred on socket: Socket[addr=/2.148.104.94,port=59900,localport=7001]
java.net.SocketException: recv failed: Descriptor not a socket.
java.net.SocketException: recv failed: Descriptor not a socket
at jrockit.net.SocketNativeIO.readBytesPinned(Native Method)
at jrockit.net.SocketNativeIO.socketRead(SocketNativeIO.java:32)
at java.net.SocketInputStream.socketRead0(SocketInputStream.java)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at weblogic.socket.SocketMuxer.readFromSocket(SocketMuxer.java:988)
at weblogic.socket.SocketMuxer.readReadySocketOnce(SocketMuxer.java:922)
at weblogic.socket.SocketMuxer.readReadySocket(SocketMuxer.java:889)
at weblogic.socket.JavaSocketMuxer.processSockets(JavaSocketMuxer.java:339)
at weblogic.socket.SocketReaderRequest.run(SocketReaderRequest.java:29)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
Does anybode know the reason?
Bye
AxelIt would be easier to help you if you could post the relevant code. Another idea is to post this in the JDBC forum.
Jamie -
Handling socket exception - Retrying a "try" block
I have a program which attempts to retrieve an object through a socket. However sometimes I get the following exception:
java.net.SocketException: Connection reset
This is a problem as I need the object to continue program execution.
An overview of the code is:
try {
UrlServerObject crawlUrlObj = getUrlToCrawl();
// Download webpage at the url returned by getUrlToCrawl()
webpage = loadPage(crawlUrlObj);
catch(java.net.SocketException ex) {
System.err.println("An exception occurred.\n" +
"The exception was: " + ex.toString());
}The getUrlToCrawl() method simply opens a socket a communicates with a server which sends back an object.
My question is what is the best way to catch the exception and "retry" the complete "try" block until an object is read?
ThanksWhen you say a loop, do you mean something along the
lines of:
boolean gotUrl = false;
while(!gotUrl) {
UrlServerObject crawlUrlObj = getUrlToCrawl();
if(crawlUrlObj != null) gotUrl = true;
}The exception would be thrown in the catch block
still though?getUrlToCrawl is presumably the code you originally posted? Yep, that's about the size of it. Although I wouldn't keep trying until you got a URL, you should consider the possibility that there isn't one, and deal with that. I'd try it a set number of times, and move on after that -
WLS Performance .. Socket Exception...
Hi
Recently we encounter the problem when we press the "Refresh" button(Browser MS IE) so quickly then WLS shows the error message as below: (The scenario is calling an entity bean from JSP.)
GMT+08:00 2000:<E> <HTTP>
Connection failure
java.net.SocketException: ReadFile on fd=916 failed with err=64
at weblogic.socket.NTSocketMuxer.initiateIO(Native Method)
at
weblogic.socket.NTSocketMuxer.read(NTSocketMuxer.java,
Compiled Code)
at
weblogic.socket.MuxableSocketHTTP.requeue(MuxableSocketHTTP.java,
Compiled Code)
at
weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java,
Compiled Code)
at
weblogic.kernel.ExecuteThread.run(ExecuteThread.java,
Compiled Code)
Basicly it's not hurt for our application, but we
usually need to convert the encoding of the string
selected from Database in the EJB(it mean I need to
convert the String because we need chinese). But if we
press the "Refresh" button so quickly, the chinese is
incorrect and appeared as "???????". And if we press
the button later and slowly then the chinese is
correct.
Can someone give me some clue about that ? Or is it related with the "Performance Pack" of WLS...?
BEST & THANKS
andrew :)
PS :
I use Window 2000, WLS 5.1 SP6 and both JDK 1.3 and JDK 1.2.2.
[weblogic.log]Hi Srikant
Thanks, below the get method of my Entity Bean
public String getEname() {
// SBgen: Get variable
String empName = null;
try{
// 'ename' is the filed of the 'emp' table..., it's stored
// as chinese in Oracle...
empName = new String(new String(ename).getBytes("iso-8859-
1"));
catch (Exception e){
e.printStackTrace(); }
return empName;
----------------------------------------------------------------- I use the getByte('iso-8859-1') to convert the string select from database (Oracle 8.1.6, the string in the DB is stored as Chinese) because I need Chinese in web page. The tricky thing is that if I press the 'Refresh' button so quickly then the chinese is displayed as '???' in my web page. If I press the 'Refresh' button slowly then the Chinese is correct in web page(JSP).
mmmmm...., I do really have no idea about that... Can someone give me some clue about that ? Thanks a lots...
BEST
andrew:O
Srikant Subramaniam <[email protected]> wrote:
This is a benign error msg ... the client closed the socket without telling the server! We've since turned off this error msg in subsequent service packs.
Srikant, [email protected], http://weblogic.bea.com/, etc.
AndrewWang wrote:
Hi
Recently we encounter the problem when we press the "Refresh" button(Browser MS IE) so quickly then WLS shows the error message as below: (The scenario is calling an entity bean from JSP.)
GMT+08:00 2000:<E> <HTTP>
Connection failure
java.net.SocketException: ReadFile on fd=916 failed with err=64
at weblogic.socket.NTSocketMuxer.initiateIO(Native Method)
at
weblogic.socket.NTSocketMuxer.read(NTSocketMuxer.java,
Compiled Code)
at
weblogic.socket.MuxableSocketHTTP.requeue(MuxableSocketHTTP.java,
Compiled Code)
at
weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java,
Compiled Code)
at
weblogic.kernel.ExecuteThread.run(ExecuteThread.java,
Compiled Code)
Basicly it's not hurt for our application, but we
usually need to convert the encoding of the string
selected from Database in the EJB(it mean I need to
convert the String because we need chinese). But if we
press the "Refresh" button so quickly, the chinese is
incorrect and appeared as "???????". And if we press
the button later and slowly then the chinese is
correct.
Can someone give me some clue about that ? Or is it related with the "Performance Pack" of WLS...?
BEST & THANKS
andrew :)
PS :
I use Window 2000, WLS 5.1 SP6 and both JDK 1.3 and JDK 1.2.2.
Name: weblogic.log
weblogic.log Type: Text Document (application/x-unknown-content-type-txtfile)
Encoding: base64 -
Socket Exception when closing the console
Hi ,
I'm running WLC & P Server 3.5/WL 6.1 in the following environment
Weblogic Version: WebLogic Server 6.1 SP1
JDK Vendor: Blackdown Java-Linux Team
JDK Version: 1.3.1
Operating System: Linux
and I'm getting very often this exception when closing the console
<Dec 30, 2001 2:21:48 PM EST> <Error> <HTTP> <Connection failure
java.net.SocketException: Error in poll for fd: '60', revents: '24'
at
weblogic.socket.PosixSocketMuxer.deliverBadNews(PosixSocketMuxer.java:429)
at
weblogic.socket.PosixSocketMuxer.processSockets(PosixSocketMuxer.java:384)
at
weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:24)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
>
I also get the same behaviour under WL 6.1 alone when closing the console.
Does anybody know what this means?
Thanks,
DanOoops, sorry for the repost.
I can see my first post on the newsgroup when I access it with the browser
http://newsgroups.bea.com/cgi-bin/dnewsweb?cmd=article&group=weblogic.develo
per.interest.personalization&item=1650&utag= )
but I cannot see it when using my newsgroup reader (Outlook Express).
Dan
"Dan" <[email protected]> wrote in message news:[email protected]..
Hi ,
I'm running WLC & P Server 3.5/WL 6.1 in the following environment
Weblogic Version: WebLogic Server 6.1 SP1
JDK Vendor: Blackdown Java-Linux Team
JDK Version: 1.3.1
Operating System: Linux
and I'm getting very often this exception when closing the console
<Dec 30, 2001 2:21:48 PM EST> <Error> <HTTP> <Connection failure
java.net.SocketException: Error in poll for fd: '60', revents: '24'
at
weblogic.socket.PosixSocketMuxer.deliverBadNews(PosixSocketMuxer.java:429)
at
weblogic.socket.PosixSocketMuxer.processSockets(PosixSocketMuxer.java:384)
at
weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:24)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
>
I also get the same behaviour under WL 6.1 alone when closing the console.
Does anybody know what this means?
Thanks,
Dan -
"No more data to read from socket" exception when testing connections
Hi,
I will appriciate your help with the following problem.
We have the follwoing errors in the weblogic.log (We are using weblogic 8.1.0.2 and Oracle 9.2.0.3)
####<Dec 20, 2006 10:47:49 AM EET> <Info> <JDBC> <ep> <mfserver> <Thread-14> <<WLS Kernel>> <> <BEA-001128> <Connection for pool "oraclePool" closed.>
####<Dec 20, 2006 10:47:49 AM EET> <Info> <JDBC> <ep > <mfserver> <Thread-14> <<WLS Kernel>> <> <BEA-001067> <Connection for pool "oraclePool" refreshed.>
####<Dec 20, 2006 10:47:51 AM EET> <Error> <JDBC> <ep > <mfserver> <Thread-14> <<WLS Kernel>> <> <BEA-001112> <Test "select count(*) from DUAL" set up for pool "oraclePool" failed with exception: "java.sql.SQLException: No more data to read from socket".>
####<Dec 20, 2006 10:47:51 AM EET> <Error> <JDBC> <ep > <mfserver> <Thread-14> <<WLS Kernel>> <> <BEA-001131> <Received an exception when closing a cached statement for the pool "oraclePool": java.sql.SQLException: Io exception: Broken pipe.>
These exception occures every hour after the connection pool is being closed and refreshed.
Also there are a lot of the follwoing warnning in the log :
<BEA-001074><A JDBC pool connection leak was detected.
Does these two problems connected? What can we do in order to solve it?
Thanks
Edited by RF123 at 01/28/2007 3:41 AMR F wrote:
Hi,
I will appriciate your help with the following problem.
We have the follwoing errors in the weblogic.log (We are using weblogic 8.1.0.2 and Oracle 9.2.0.3)
####<Dec 20, 2006 10:47:49 AM EET> <Info> <JDBC> <ep> <mfserver> <Thread-14> <<WLS Kernel>
<> <BEA-001128> <Connection for pool "oraclePool" closed.>
####<Dec 20, 2006 10:47:49 AM EET> <Info> <JDBC> <ep > <mfserver> <Thread-14> <<WLS Kernel>
<> <BEA-001067> <Connection for pool "oraclePool" refreshed.>
####<Dec 20, 2006 10:47:51 AM EET> <Error> <JDBC> <ep > <mfserver> <Thread-14> <<WLS Kernel>
<> <BEA-001112> <Test "select count(*) from DUAL" set up for pool "oraclePool" failed with exception:
"java.sql.SQLException: No more data to read from socket".>
####<Dec 20, 2006 10:47:51 AM EET> <Error> <JDBC> <ep > <mfserver> <Thread-14> <<WLS Kernel>
<> <BEA-001131> <Received an exception when closing a cached statement for the pool "oraclePool":
java.sql.SQLException: Io exception: Broken pipe.>
These exception occures every hour after the connection pool is being closed and refreshed.
Also there are a lot of the follwoing warnning in the log :
<BEA-001074><A JDBC pool connection leak was detected.
Does these two problems connected? What can we do in order to solve it?Hi. The problems are not directly related, but may have the same cause.
Something is killing your DBMS connections out from under the driver.
Do you have a firewall between WLS and the DBMS, or a flakey network?
Contact BEA support to get the 8.1sp2 patch for getting meaningful
connection leak traces (CR209251_81sp2.jar). When that patch is installed
the leak messages should show a full stack trace of the application code
where the connection was obtained. It is that application code that
somehow failed to close the pool connection, causing a pool leak. I
suspect that the application code got an unexpected exception, such as
when/if the DBMS/network/firewall killed a connection. In this case I
believe the application went through an exception-handling path that
forgot to close the connection.
Joe -
PL-SQL JDBC -- No more data to read from socket Exception
I have a PL/SQL stored procedure which takes CURSOR as IN parameter.
I want to execute this procedure by passing a ResultSet object into it.
Below attached is the piece of code I am using.
When I execute I am getting the following exception ,
Thanks in advance
java.sql.SQLException: No more data to read from socket
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:210)
at oracle.jdbc.dbaccess.DBError.check_error(DBError.java:857)
at oracle.jdbc.ttc7.MAREngine.unmarshalUB1(MAREngine.java:731)
at oracle.jdbc.ttc7.MAREngine.unmarshalSB1(MAREngine.java:690)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:373)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1405)
at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:822
at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.ja
va:1446)
at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.jav
a:1371)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStateme
nt.java:1900)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePrepar
edStatement.java:363)
at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStat
ement.java:407)
at ECTTestClass.test16(ECTTestClass.java:500)
at ECTTestClass.main(ECTTestClass.java:51)
Statement st = con.createStatement();
String qry = "SELECT * FROM TAB1";
ResultSet rs = st.executeQuery(qry);
int cntr = 0;
while(rs.next()){
System.out.println("USER ID " + rs.getString("USER_ID"));
System.out.println("LICENSE " + rs.getString("LICENSE"));
cntr++;
System.out.println("No of rows " + cntr);
CallableStatement cst = con.prepareCall("{call PREM_TEMP.PREM_PROC(?)}");
cst.setObject(1,rs,OracleTypes.CURSOR);
System.out.println("set object...... successful");
cst.execute();
st.close();
cst.close();
con.close();I have a PL/SQL stored procedure which takes CURSOR as IN parameter.
I want to execute this procedure by passing a ResultSet object into it.
Below attached is the piece of code I am using.
When I execute I am getting the following exception ,
Thanks in advance
java.sql.SQLException: No more data to read from socket
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:210)
at oracle.jdbc.dbaccess.DBError.check_error(DBError.java:857)
at oracle.jdbc.ttc7.MAREngine.unmarshalUB1(MAREngine.java:731)
at oracle.jdbc.ttc7.MAREngine.unmarshalSB1(MAREngine.java:690)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:373)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1405)
at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:822
at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.ja
va:1446)
at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.jav
a:1371)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStateme
nt.java:1900)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePrepar
edStatement.java:363)
at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStat
ement.java:407)
at ECTTestClass.test16(ECTTestClass.java:500)
at ECTTestClass.main(ECTTestClass.java:51)
Statement st = con.createStatement();
String qry = "SELECT * FROM TAB1";
ResultSet rs = st.executeQuery(qry);
int cntr = 0;
while(rs.next()){
System.out.println("USER ID " + rs.getString("USER_ID"));
System.out.println("LICENSE " + rs.getString("LICENSE"));
cntr++;
System.out.println("No of rows " + cntr);
CallableStatement cst = con.prepareCall("{call PREM_TEMP.PREM_PROC(?)}");
cst.setObject(1,rs,OracleTypes.CURSOR);
System.out.println("set object...... successful");
cst.execute();
st.close();
cst.close();
con.close(); -
Query re: SSL / socket exceptions in J2SE 1.4.1_01
Hi.
We recently migrated a large EFT-related website from a four year old version of Java Web Server to the Jakarta Tomcat 4.1.12 release. This involved an upgrade to the 1.4.1_01 JDK.
Since the upgrade we've been getting occasional exceptions within the SSL classes shipped with the J2SE. We're not sure if these are actual critical errors or whether they're related to users clicking stop or back buttons in their browsers.
Below are some samples:
example 1:
java.net.SocketException: Connection reset
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:96)
at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at com.sun.net.ssl.internal.ssl.OutputRecord.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.AppOutputStream.write(DashoA6275)
at org.apache.coyote.http11.InternalOutputBuffer$OutputStreamOutputBuffer.doWrite(InternalOutputBuffer.java:652)
...example 2:
javax.net.ssl.SSLException: Connection has been shutdown:
javax.net.ssl.SSLException: java.net.SocketException: Connection reset
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.d(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.e(DashoA6275)
at com.sun.net.ssl.internal.ssl.AppOutputStream.write(DashoA6275)
at org.apache.coyote.http11.InternalOutputBuffer$OutputStreamOutputBuffer.doWrite(InternalOutputBuffer.java:652)
...example 3:
java.net.SocketException: Broken pipe
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at com.sun.net.ssl.internal.ssl.OutputRecord.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.AppOutputStream.write(DashoA6275)
at org.apache.coyote.http11.InternalOutputBuffer$OutputStreamOutputBuffer.doWrite(InternalOutputBuffer.java:652)
...If anyone has any clue as to why this is happening, please let me know. If it's just users being silly in their browsers, then it would be nice to know that I don't need to fix it ;-)
McFinniganIt's probably users being silly with their browsers. I have heard it said that MSIE does connection-resets instead of properly closing sockets for some reason, but I could have heard this wrong, and one would hope that any such stupidity would not apply to HTTPS connections.
You still need to evalulate the security implications, if any, of the connection being broken earlier than expected, e.g. the client not getting all the data you're trying to send, or premature termination of the session. This could result from a man-in-the-middle attack (which is why SSL flags it). -
Socket Exception Invalid argument create on Windows service in process mode
Please help , Iam getting SocketException Error on connecting with mysql using jdbc also when connect to Activemq jms. Strange thing is this is only
happening on Windows Server(2008) and when i run the application as Windows service with 'jvm' (in-process) option. Program can connect
when i run as Java exe in the Windows Service.
Java JDK version - jdk1.6.0_26.
Thanks in advance, please ask if any more info needed.
-- mysql connect--
Database Driver="com.mysql.jdbc.Driver" Host="jdbc:mysql://localhost:3306/mydb?useUnicode=true&characterEncoding=UTF8" User="admin" Password="password"
Java.net.SocketException
MESSAGE: Invalid argument: create
STACKTRACE:
java.net.SocketException: Invalid argument: create
at java.net.Socket.createImpl(Socket.java:397)
at java.net.Socket.<init>(Socket.java:371)
at java.net.Socket.<init>(Socket.java:189)
at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:124)
at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:225)
at com.mysql.jdbc.Connection.createNewIO(Connection.java:1779)
at com.mysql.jdbc.Connection.<init>(Connection.java:450)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:411)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:185)
at myapp.JDBCLoader.JDBCConnect(JDBCLoader.java:129)
----on activemq connect ---
javax.jms.JMSException: Could not connect to broker URL: tcp://localhost:61616?connectionTimeout=0&keepAlive=true&wireFormat.maxInactivityDuration=0. Reason: java.net.SocketException: Invalid argument: create
at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:35)
at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:286)
at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:230)
at org.apache.activemq.ActiveMQConnectionFactory.createQueueConnection(ActiveMQConnectionFactory.java:193)
at sen.connector.queue.ConnectionFactory.createQueueConnection(ConnectionFactory.java:60)
at sen.connector.queue.ConnectionFactory.createQueueConnection(ConnectionFactory.java:36)
at sen.connector.queue.HostConnection.connectToHost(HostConnection.java:147)
at sen.connector.queue.HostConnection.run(HostConnection.java:127)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.net.SocketException: Invalid argument: create
at java.net.Socket.createImpl(Socket.java:397)
at java.net.Socket.connect(Socket.java:527)
at org.apache.activemq.transport.tcp.TcpTransport.connect(TcpTransport.java:484)
at org.apache.activemq.transport.tcp.TcpTransport.doStart(TcpTransport.java:447)
at org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:53)
at org.apache.activemq.transport.InactivityMonitor.start(InactivityMonitor.java:127)
at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
at org.apache.activemq.transport.WireFormatNegotiator.start(WireFormatNegotiator.java:72)
at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:266)
Edited by: 891207 on Oct 12, 2011 8:14 PM
Edited by: 891207 on Oct 12, 2011 8:17 PMI'm sure that exception can be caused by the firewall.The exception below is what is caused by a firewall. Anyway the OP said that it worked fine running as a windows service, so that would rule-out a firewall. Also connections to 'localhost' don't go through the firewall.
Expecting people to know that 'try a different JVM' I already explained that
my initial diagnosis was incorrectHave a nice day.
- Mike
java.sql.SQLException: IO Error: The Network Adapter could not establish the connection
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:512)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:
554)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:232)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:28)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:553)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:154)
at JDBCTest4.main(JDBCTest4.java:53)
Caused by: oracle.net.ns.NetException: The Network Adapter could not establish the connection
at oracle.net.nt.ConnStrategy.execute(ConnStrategy.java:388)
at oracle.net.resolver.AddrResolution.resolveAndExecute(AddrResolution.java:430)
at oracle.net.ns.NSProtocol.establishConnection(NSProtocol.java:871)
at oracle.net.ns.NSProtocol.connect(NSProtocol.java:264)
at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1598)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:360)
... 7 more
Caused by: java.net.ConnectException: Connection timed out
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:529)
at oracle.net.nt.TcpNTAdapter.connect(TcpNTAdapter.java:146)
at oracle.net.nt.ConnOption.connect(ConnOption.java:129)
at oracle.net.nt.ConnStrategy.execute(ConnStrategy.java:366) -
No more data to read from socket Exception -thin client
my program is ..
import java.sql.*;
class OracleSQL
OracleSQL()
public static void connect2DB()
try
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con=DriverManager.getConnection("jdbc:oracle:thin:@POOJAK:1521:PLSExtProc","System","pooja");
if(con!=null)
Statement stmt=con.createStatement();
stmt.executeUpdate("insert into emp values('a',8,8)");
stmt.close();
con.close();
else
System.out.println("NOT ok");
catch(Exception e)
e.printStackTrace();
public static void main(String args[])
OracleSQL osql=new OracleSQL();
osql.connect2DB();
following error on execution..
java.sql.SQLException: No more data to read from socket
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
:112)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
:146)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
:208)
at oracle.jdbc.driver.T4CMAREngine.unmarshalUB1(T4CMAREngine.java:1118)
at oracle.jdbc.driver.T4CMAREngine.unmarshalSB1(T4CMAREngine.java:1070)
at oracle.jdbc.driver.T4C8TTIpro.receive(T4C8TTIpro.java:131)
at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:867)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:268)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:
420)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:165)
at
oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtensio
n.java:35)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at OracleSQL.connect2DB(OracleSQL.java:15)
at OracleSQL.main(OracleSQL.java:38)
classpath
C:\oraclexe\app\oracle\product\10.2.0\server\jdbc\lib\ojdbc14.jar;C:\oraclexe\app\oracle\product\10.2.0\server\jlib\orai18n.jar ;C:\bea\weblogic81\server\lib\weblogic.jar;
path
C:\oraclexe\app\oracle\product\10.2.0\server\BIN;
i m using jdk 1.5
Plz state reason of error as i hv tried many alternatives but in vain.When you post code, please use[code] and [/code] tags as described in Formatting tips on the message entry page. It makes it much easier to read.
Google:
User StuDerby posted:
Well, lot's of things could be causing this. Off the top of my head, in rough order of likelihood:
1) firewall - personal, on your box, or general, around the database, is reaping long-lived connections
2) connection wrappers on the database - ditto
3) your pooler is configured to terminate connections that are checked out of the pool for too long and you're exceeding that time for some operations
4) your database or it's listener is crashing out from under you (and possibly being auto-restarted by the time you look at it). -
An applet connects to a socket on the server and works fine. It establishes Object input and Output streams.
When the web page is closed the server catchs a SocketException which is thrown due to the readObject() method being called on an ObjectInputStream which obviously no longer exists.
Is there any other way of telling the server that the applet has terminated or due i just use this exception to clean things up (i.e. close the streams and coonection and de-reference the thread).
thanks.The applet could send a message to the server in the method Applet#stop()
-
What does the return code mean in Socket Exception?
I got SocketException from my program and the whole content of the exception.toString() is:
java.net.SocketException: socket write error (code =10004).
Can anybody tell me what does "code=10004" mean?
Thanks.
RachelTry to use
exception.PrintStackTrace()instead of
exception.toString()It should me more helpful..
bye
Michele -
Socket Exception when closing Server Socket Streams if Client closes first
Hi
I have 2 processes - a Server socket and a client socket. If I close the Client process first, and then try closing down the Streams on the Server process, I get a SocketException with message "Socket is closed" when I try and close the 2nd Stream. It does not matter on the order of the Stream being closed down, the exception is always thrown when I try and close the second stream. The code snippets are below:
SERVER =======
import java.io.InputStream;
import java.io.OutputStream;
import java.net.ServerSocket;
import java.net.Socket;
public class ServerSocketTest {
public static void main(String args[]) {
try {
ServerSocket ss = new ServerSocket(9999);
Socket s = ss.accept();
// Get refs to streams...
InputStream is = s.getInputStream();
OutputStream os = s.getOutputStream();
// sleep to let client shutdown first...
try {
Thread.sleep(10000);
} catch (InterruptedException e) {
System.err.println(e);
System.err.println("B4 inClose: isBound=" + s.isBound());
System.err.println("B4 inClose: isClosed=" + s.isClosed());
System.err.println("B4 inClose: isConnected=" + s.isConnected());
System.err.println("B4 inClose: isInputShutdown=" + s.isInputShutdown());
System.err.println("B4 inClose: isOutputShutdown=" + s.isOutputShutdown());
s.getInputStream().close();
System.err.println("After inClose: isBound=" + s.isBound());
System.err.println("After inClose: isClosed=" + s.isClosed());
System.err.println("After inClose: isConnected=" + s.isConnected());
System.err.println("After inClose: isInputShutdown=" + s.isInputShutdown());
System.err.println("After inClose: isOutputShutdown=" + s.isOutputShutdown());
s.getOutputStream().close(); // will break here with SocketException!
System.err.println("After outClose: isBound=" + s.isBound());
System.err.println("After outClose: isClosed=" + s.isClosed());
System.err.println("After outClose: isConnected=" + s.isConnected());
System.err.println("After outClose: isInputShutdown=" + s.isInputShutdown());
System.err.println("After outClose: isOutputShutdown=" + s.isOutputShutdown());
s.close();
} catch (Exception e) {
System.err.println(e);
CLIENT ======
import java.net.Socket;
public class ClientSocket {
public static void main(String args[]) {
try {
Socket s = new Socket("localhost", 9999);
try {
// sleep to leave connection up for a while...
Thread.sleep(2000);
} catch (InterruptedException e) {
System.err.println(e);
s.close();
} catch (Exception e) {
System.err.println(e);
The debug shows that isClosed() is set to 'true' after the first call to s.getInputStream().close(). The Sun API Socket class getOutputStream() has a call to isClosed() at the start of the method - it then throws the SocketException that I get. Why does the SocketImpl do this before I get a chance to call a.getOutputStream().close()?
One final thing, the calls to s.isInputShutdown() and s.isOuputShutdown always seem to return false even if the Streams have had their .close() method called.
Any ideas/help here greatly appreciated.
Thanks
GazOk, I know what's going on now - I needed something to do on Friday afternoon anyhow!
Basically if you call either getOutputStream.close() or getInputStream().close(), the underlying Sun implementation will close the Socket.
Here's what's happening under the covers in the Sun code:
s.getInputStream() is called on the Socket class.
The Socket class holds a reference to the SocketImpl class.
The SocketImpl class is abstract and forces sublclasses to extend it' s getInputStream() method.
The PlainSocketImpl extends SocketImpl.
PlainSocketImpl has a getInputStream() method that returns a SocketInputStream. When the stream is created for the first time, the PlainSocketImpl object is passed into the Constructor.
The SocketInputStream class has a close() method on it. The snippet of code below shows how the socket is closed:
<pre>
* Closes the stream.
private boolean closing = false;
public void close() throws IOException {
// Prevent recursion. See BugId 4484411
if (closing)
return;
closing = true;
if (socket != null) {
if (!socket.isClosed())
socket.close();
} else
impl.close();
closing = false;
</pre>
So, it seems that out PlainSocketImpl is getting closed for us, hence the SocketException being thrown in Socket.getOutputStream() when I call it after Socket.getInputStream()/
I've not had a look at the reason why the calls to s.isInputShutdown() and s.isOuputShutdown always seem to return false even if the Streams have had their .close() method called though - any thoughts appreciated.
Thanks
G
Maybe you are looking for
-
Hi, I have a problem with creating some double sided cards in Indesign and I was hoping that someone can help me please? I have to create double sided cards in Indesign, so each side of the card has a border and crop marks in the exact same place. Ea
-
Contact Apple Host for a research purpose
Hello the Apple Host, I am a postgraduate student at Old Dominion University and currently working on a research focusing on online forums/discussion boards. I plan to conduct a study in Apple Discussions. I need to contact Apple Host to see if Apple
-
How can I view and choose photos before importing from a digital camera?
Hey, I am using a Canon PowerShot A40 and I want to be able to (after I connect the camera and open iPhoto of course) view the pictures on the camera in iPhoto and choose individual images to import. I have 560 images, but I only want to import 3 (gr
-
Accessing Desktop "address.mdb" & "address.mdb.bak" files
I was using Palm Desktop as my contact mgr on my VISTA PC. VISTA PC drive crashed, but data was saved and loaded on new PC. I downloaded & installed Desktop V 6.2.2 on new Windows 7 PC, but the process did not find my old contacts file. I have locate
-
Firefox Sync not working with own server
I tired using my own firefox sync 1.5 server. The server is running and I see something in the logs, but these data looks ok: INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): verifier.accounts.firefox.com INFO:mozsvc.m