Unable to catch SocketException in Thread

I have a peculiar problem with my client-server application. The scenario is quite simple:
1. A ServerSocket object accepts a new connection from the client
2. The accepted socket then opens an input and output stream and waits for request from the client (it gets stalled in a read() method).
3. The client sends two requests. In my test setup the execution simply ends here, meaning that the client thread comes to a natural end, causing the client socket to stop existing (I guess ?!?)
Everything seems to progress smoothly with the requests - no errors or exceptions occur along the way, apart from a "SocketException: socket reset" which gets thrown by the accepted server socket's inputstream, since it was stalled in the read() method, after having completed the two mentioned requests. So far so good - it all makes sense, but what I don't understand is why I'm unable to catch that SocketException. My StackTrace leads me to a specific place in my code (I use netBeans to find it) where I actually catch all possible Exceptions, but try to ignore them. However, the stacktrace gets printed anyway, while the message that I wish to print doesn't. The code looks like this:
        while(!isClosed()) {
            final Socket s = accept();           
            Thread t = new Thread(new Runnable() {
                public void run() {
                    try {
                        handleConnectionRequest(s);
                    } catch (SocketException ex) { // THE EXCEPTION SHOULD GET CAUGHT HERE!!!
                        System.out.println("Socket exception");
                    } catch (SocketTimeoutException ex) {
                        System.out.println("SocketTimeoutException");
                    } catch (IOException ex) {
                        System.out.println("IOException");
                    } catch (Exception ex) {
                        System.out.println("Exception");
            t.start();
        }My StackTrace looks as follows:
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:168)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
at java.io.DataInputStream.readInt(DataInputStream.java:370)
at filetransfer.Session.getClientCommand(Session.java:117)
at filetransfer.Session.idle(Session.java:147)
at filetransfer.Session.authenticate(Session.java:95)
at filetransfer.Session.run(Session.java:60)
at filetransfer.FileTransferServer.handleConnectionRequest(FileTransferServer.java:87)
at filetransfer.FileTransferServer.access$000(FileTransferServer.java:26)
at filetransfer.FileTransferServer$1.run(FileTransferServer.java:61)
at java.lang.Thread.run(Thread.java:619)

Sorry guys. When I put my head on the pillow last evening I thought more clearly and came to think that it might be a result of a try catch block longer up the stack handling the IOException. Today I finally found it and by removing it everything works as intended. I simply didn't realise that the printed stacktrace itself wouldn't reveal where the exception was caught and it's stacktrace printed, so I went looking in the wrong place.

Similar Messages

  • Java.lang.OutOfMemoryError: unable to create new native thread on Win2000

    Dear all,
    I install a java server (SAP J2EE) on the windows machine and run into the following problem: the total number of threads cannot exceed 1200 (as i see this in the task manager)
    After it does reach this number no other tasks can be started. Thereafter i get java.lang.OutOfMemoryError: unable to create new native thread error .
    However the other machine where the same distribution of Win2000 Server is installed can easily coupe with more than 2500 theads. The same is true when the safe mode on the first machine is on: I can generate more than 1200 threads. So it seems the problem has something to do with Windows itself.
    I am really puzzled here, would really appreciate any help.
    Thanks in advance,
    Dimitry
    Surkov Dimitry
    [email protected]
    +49.1632.492618

    well, i do not supply any options when i start jvm, but it is not the course:
    it also happens with c programs. however in the safe mode it works. both for c and for java program.
    so it must be either some software (however memory is ok) or ...? i am lost. In some Unix system you can set the total number of threads allowed as an option in the kernal. But i guess this is not the case with windows.
    Thanks a lot for your reply,
    dimitry

  • Java.lang.OutOfMemoryError: unable to create new native thread

    Hi All,
    I have installed weblogic server 8 sp4 in production environment . I am facing problems with JVM issues .
    JVM is crashing very frequently with the following errro :
    ####<Jun 18, 2009 10:58:22 AM IST> <Info> <Common> <IMM90K-21> <SalesCom> <ExecuteThread: '24' for queue: 'weblogic.kernel.Default'> <<anonymous>> <> <BEA-000628> <Created "1" resources for pool "PIConnectionPool", out of which "1" are available and "0" are unavailable.>
    ####<Jun 18, 2009 11:00:09 AM IST> <Info> <EJB> <IMM90K-21> <SalesCom> <ExecuteThread: '23' for queue: 'weblogic.kernel.Default'> <<anonymous>> <> <BEA-010051> <EJB Exception occurred during invocation from home: payoutCheck.ejb.payoutCheck_s6v3so_HomeImpl@121a735 threw exception: java.lang.OutOfMemoryError: unable to create new native thread
    java.lang.OutOfMemoryError: unable to create new native thread
         at java.lang.Thread.start(Native Method)
         at payoutCheck.classes.MyThread2.MyThreadv(PayoutCheckBOImpl.java:249)
         at payoutCheck.classes.PayoutCheckBOImpl.genSP(PayoutCheckBOImpl.java:184)
         at payoutCheck.ejb.PayoutCheckSLSB.genSP(PayoutCheckSLSB.java:191)
         at payoutCheck.ejb.payoutCheck_s6v3so_EOImpl.genSP(payoutCheck_s6v3so_EOImpl.java:315)
         at payoutCheck.ejb.payoutCheck_s6v3so_EOImpl_CBV.genSP(Unknown Source)
         at payoutCheck.deligate.PayoutCheckBD.genSP(PayoutCheckBD.java:226)
         at ui.action.SearchAction.callFilter(SearchAction.java:378)
         at sun.reflect.GeneratedMethodAccessor201.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:280)
         at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:220)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:446)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:266)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
         at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6718)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    >
    The above mentioned is coming several times , anybody please help out to get rid of this issue.
    Thanks in advance ,
    Krikar.

    This only tells you that the JVM is running out of heap space. It doesn't tell you what is causing the problem. You likely have a memory leak, but you could also try increasing the max heap size of the JVM (-Xmx command line option). It would help to watch the % mem in use statistic, but only immediately after a garbage collection cycle (you can force a GC from the admin console). If the % mem in use after the GC is increasing over time, then that likely confirms you have a memory leak. Note that looking at that statistic during the server startup probably is irrelevant. You'd need to wait until the server finishes starting up, and likely processed a few messages (to load static data).
    If you get to the point of confirming that you have a memory leak, that requires doing detailed analysis with a Java profiler (JProfiler, JProbe, YourKit, etc.) to track down the source of the leak.

  • Help! Unable to create new native thread

    Ok I see this problem all over the web but most of the posts are many years old and still leave me a little confused.  Often at random times on the same tags like CFLDAP I get the error "Unable to create new native thread".  Then a few minutes later the same tag on the same page works just fine.
    I have 4GB of memory in this box with 1400 MB set as the maximum Java heap size by the way.
    Here are my arguments from the jvm.config file.
    # Arguments to VM
    java.args=-server  -Xmx1400m -Dsun.io.useCanonCaches=false -XX:MaxPermSize=192m -XX:+UseParallelGC -Dcoldfusion.rootDir={application.home}/../ -Dcoldfusion.libPath={application.home}/../lib -Dcoldfusion.classPath={application.home}/../lib/updates,{application.home}/../lib,{appli cation.home}/../gateway/lib/,{application.home}/../wwwroot/WEB-INF/flex/jars,{application. home}/../wwwroot/WEB-INF/cfform/jars,"C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\InterWeb-Prod\\includes\\classes"
    Here is a typical error that comes through.
    struct     
    Browser     Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.70 Safari/533.4    
    DateTime    {ts '2010-06-23 10:07:44'}  
    Diagnostics unable to create new native thread null <br>The error occurred on line 122.
    GeneratedContent      
    HTTPReferer http://--------------------/index.cfm?FuseAction=HR.main    
    Mailto      interweb@--------------------- 
    Message     unable to create new native thread      
    QueryString fuseaction=ManagedLists.MailSubscriptions     
    RemoteAddress     192.168.250.124
    RootCause   struct    
    Message     unable to create new native thread      
    StackTrace          java.lang.OutOfMemoryError: unable to create new native thread at java.lang.Thread.start0(Native Method) at java.lang.Thread.start(Thread.java:597) at com.sun.jndi.ldap.Connection.<init>(Connection.java:208) at com.sun.jndi.ldap.LdapClient.<init>(LdapClient.java:112) at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2504) at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:263) at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:76) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288) 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 coldfusion.tagext.net.LdapTag.do_ActionQuery(LdapTag.java:839) at coldfusion.tagext.net.LdapTag.doStartTag(LdapTag.java:616) at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2661) at cfadfunctions2ecfm1473603830$funcADLOOKUPUSERNAME.runFunction(C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\InterWeb-Prod\includes\adfunctions.cfm:122) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:418) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:324) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:59) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:277) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:192) at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:2471) at cfadfunctions2ecfm1473603830$funcADLOOKUPMULTIPLEUSERNAMES.runFunction(C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\InterWeb-Prod\includes\adfunctions.cfm:54) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:418) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:324) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:59) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:277) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:192) at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:2471) at cfdsp_managedlists2ecfm55598920.runPage(C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\InterWeb-Prod\hr\managedlists\dsp_managedlists.cfm:232) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:196) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:370) at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2661) at cffbx_switch2ecfm2121232114.runPage(C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\InterWeb-Prod\hr\managedlists\fbx_switch.cfm:23) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:196) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:370) at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2661) at cffbx_fusebox30_cf502ecfm1180471387._factor4(C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\InterWeb-Prod\fbx_fusebox30_cf50.cfm:241) at cffbx_fusebox30_cf502ecfm1180471387._factor5(C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\InterWeb-Prod\fbx_fusebox30_cf50.cfm:1) at cffbx_fusebox30_cf502ecfm1180471387.runPage(C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\InterWeb-Prod\fbx_fusebox30_cf50.cfm:1) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:196) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:370) at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2661) at cfindex2ecfm749274359.runPage(C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\InterWeb-Prod\index.cfm:23) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:196) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:370) at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:273) at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48) at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at coldfusion.filter.PathFilter.invoke(PathFilter.java:86) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8) at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46) at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at coldfusion.CfmServlet.service(CfmServlet.java:175) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) at jrun.servlet.FilterChain.doFilter(FilterChain.java:86) at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42 ) at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) at jrun.servlet.FilterChain.doFilter(FilterChain.java:94) at jrun.servlet.FilterChain.service(FilterChain.java:101) at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106) at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286) at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543) at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203) at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320) at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428) at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266) at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)  
    I could really use some help figuring this out.  We are getting random errors a few times a day and usually in places where we are using CFLDAP.
    Thanks,
    David

    Absolutely unbelievable that this has been going on for 4 YEARS and there are still NO definitive answers from Adobe!!
    There's no definite answer from Adobe, because there's no definitive single question.  These errors come up because - for any number of possible reasons - the JVM becomes overloaded.  And it's almost always down to an issue with the application code being run, and nothing to do with CF, per-se.  So what's Adobe supposed to do?  Come and fix your application for you?  There are plenty of diagnostic tools out there - some built into CF itself - which you could use to sort the problem out.  Or you could hire someone like Mike Brunt to come and have a look at your set up.  All it takes to fix these things is to actually do something about fixing it, rather than slamming one's fist on the desk saying "why doesn't Adobe do something!"
    I thought - and my knowledge in the area isn't expansive - the inability to allocate threads was down to the app being choked up: threads are a finite commodity, and if requests are queuing up faster than the JVM can clear them, you're gonna get errors eventually.  What causes this sort of thing?  More traffic than the server can process.  This could be because of server kit, or it could be due to code that doesn't scale to the requirement.  Usually the latter.  Basically one cannot polish a turd.
    I have a 24x7 production server that services 180,000 clients in 300 countries around the clock that cannot afford to be down for more than a few minutes at a time.
    I'm running Windows 2008 32-bit with 4GB of RAM because I have some graphics software that cannot tolerate a 64-bit OS.  Everything has been running fine for the past few months, but now it's starting to crash more and more frequently.  I have CF 8.0.1.195765 and Java 1.6.0_04
    How many concurrent requests for 180000 clients generate?  The number of clients matters less than how heavily the site is used.  But, to be honest, I get the impression the implication is "it's a busy site", in which case I think your hardware is a bit on the lean side.  Also, if it's a mission-critical app, running it on a single server is probably ill-advised, just from a fault-tolerance perspective even before one starts thinking about performance.
    If I was in your situation, I'd consider the following options:
    * upgrade your JVM to the most recent version (1.6.0_21?)
    * put more RAM in the box, and run a second CF instance on it.
    * get another box.
    * refactor the environment so the graphics software runs on a different box, upgrading the CF server to 64-bit (again, with more RAM)
    * run some diagnostics on the server, seeing what's taking up threads and where any bottlenecks might be
    * get an expert in to do the analysis side of things.
    * stop expecting Adode to fix "something".
    One of my other symptoms I have noticed is that any work done using RDP starts getting really really bogged down.  Opening Windows Explorer and searching for files can take minutes.  Restarting the CF service will sometimes fail to complete, and you have to wait a few minutes before the manual Start option appears in the dropdown.  Maybe coincidentally, the Performance Monitor will fail to add any of the ColdFusion metrics, for example Running Requests and Queued Requests, and the Event Monitor shows an error relating to an 8-byte boundary not being maintained.
    You don't, by any chance, store your client variables in the registry do you?  The only time I've seen this happen is when the CF box is munging the OS environment, and the only way I can think this could happen if it was clogging the registry.  Never store client variables in the registry.
    Adam

  • Why i am unable to catch the 'TAB' key press?

    hi
    i have an application where i have 2 text fields and one button in order say t1, t2 and b1.
    on tabbing t1 cursor moves to t2 and on tabbing t2 cursor moves to b1 and on tabbing b1 cursor moves to t1.
    now when i press tab button on any of the component i have written a keyListener for that to catch 'TAB' key using the comparision
    if( e.getKeyCode() == KeyEvent.VK_TAB )
    but its not catching the tab key pressed on any of these 3 components....
    why like this...
    i want to catch the press of 'TAB' key and write some action for it... but unable to catch the 'TAB' key press.
    anyone could help me in this....
    thanx in advance,
    -Soni

    I seem to remember this question being asked before. I think the answer was that the FocusManager intercepts the TAB key. I don't remember the solution but you can try searching the forum.

  • Unable to catch raiseerror exception from MS SQL Server Exception in hibernate

    I am using raiseerror in MS SQL Server exception to throw customized error and it is working fine in database.
    But, I am unable to catch MS SQL Server Exception in hibernate. Please find the database & java syntax below.
    SQL Server Syntax:-
        ALTER PROCEDURE [grantiumSQL].[ERROR_MESSAGE]
        @ERRMSG NVARCHAR(4000)
        AS
        BEGIN
        -- Return if there is no error information to retrieve.    
        IF ERROR_NUMBER() IS NULL    
            RETURN;    
        DECLARE     
            @ErrorMessage    NVARCHAR(4000),    
            @ErrorNumber     INT,    
            @ErrorSeverity   INT,    
            @ErrorState      INT,    
            @ErrorLine       INT,    
            @ErrorProcedure  NVARCHAR(200);    
        -- Assign variables to error-handling functions that     
        -- capture information for RAISERROR.    
        SELECT     
            @ErrorNumber = ERROR_NUMBER(),    
            @ErrorSeverity = ERROR_SEVERITY(),    
            @ErrorState = ERROR_STATE(),    
            @ErrorLine = ERROR_LINE(),    
            @ErrorProcedure = ISNULL(ERROR_PROCEDURE(), '-'),   
            @ErrorMessage = @ERRMSG
        RAISERROR     
            @ErrorMessage,    
            @ErrorSeverity,     
            1                           
            )WITH NOWAIT;
        END;
    Java Syntax:-
    public void callDeleteStoreProcedure(int workflowProjectId,String status){
      boolean shouldCommit = HibernateUtil.beginTxn();
      Session session = HibernateUtil.currentSession();
      try
      // query = session.getNamedQuery("deleteWorkflowProject_ora");
      Query callStoredProcedure = session.createSQLQuery("{PROCEDUR_NAME(?,?)}");
      callStoredProcedure.setInteger(0, prj);
      callStoredProcedure.setString(1, status);
      callStoredProcedure.executeUpdate();
         }catch (HibernateException e) {
         e.printStackTrace();
      catch (Exception e) {
          e.printStackTrace();
      HibernateUtil.commitTxn(shouldCommit);
    Thanks in advance

    HI! We have the same problem. Have you manage to resolve it?

  • I am using I Phone 5 and i am unable to catch the 3G signal on my phone but at the same time my colleague using another i phone 5 can easily catch 3G signal. We are using sim of same operator. If i go out of my office i can catch 3G coverage easily.

    I am using I Phone 5 and i am unable to catch the 3G signal on my phone but at the same time my colleague using another i phone 5 can easily catch 3G signal. We are using sim of same operator. If i go out of my office i can catch 3G coverage easily.I am tired of surfing on edge network. I have tried many tricks from changing the mode to airplane mode and then again back to normal mode.

    Hey Suvit Sharma,
    I would go through the troubleshooting suggestions in this article:
    iPhone: Troubleshooting a cellular data connection
    http://support.apple.com/kb/TS3780
    You're already on the right track with toggling airplane mode, but there are several other steps you can take to resolve the issue.
    Best,
    Delgadoh

  • ARC0: Unable to archive log 1 thread 1 sequence 1292

    Hi all,
    We are getting error in our alert logfile:
    We are using oracle 9.2.0.8 on RHEL5, is there solution to overcome this problem
    Thread 1 advanced to log sequence 1293
      Current log# 3 seq# 1293 mem# 0: /u01/app/oracle/oradata/icai/redo03.log
      Current log# 3 seq# 1293 mem# 1: /oradata/data/redo03a.log
      Current log# 3 seq# 1293 mem# 2: /oradata/data/redo03d
    Mon Aug 16 11:31:10 2010
    ARC0: Evaluating archive   log 2 thread 1 sequence 1291
    ARC0: Unable to archive log 2 thread 1 sequence 1291
          Log actively being archived by another process
    Mon Aug 16 11:31:28 2010
    ARC3: Completed archiving  log 2 thread 1 sequence 1291
    Mon Aug 16 11:50:44 2010
    Thread 1 advanced to log sequence 1293
      Current log# 3 seq# 1293 mem# 0: /u01/app/oracle/oradata/icai/redo03.log
      Current log# 3 seq# 1293 mem# 1: /oradata/data/redo03a.log
      Current log# 3 seq# 1293 mem# 2: /oradata/data/redo03d
    Mon Aug 16 11:50:44 2010
    ARCH: Evaluating archive   log 1 thread 1 sequence 1292
    Mon Aug 16 11:50:44 2010
    ARCH: Beginning to archive log 1 thread 1 sequence 1292
    Mon Aug 16 11:50:44 2010
    ARC3: Evaluating archive   log 1 thread 1 sequence 1292
    Mon Aug 16 11:50:44 2010
    ARC3: Unable to archive log 1 thread 1 sequence 1292
          Log actively being archived by another process
    Mon Aug 16 11:50:44 2010
    Creating archive destination LOG_ARCHIVE_DEST_3: 'drsite_delhi'
    Creating archive destination LOG_ARCHIVE_DEST_2: 'hp'
    Mon Aug 16 11:51:21 2010
    ARC0: Evaluating archive   log 1 thread 1 sequence 1292
    ARC0: Unable to archive log 1 thread 1 sequence 1292
          Log actively being archived by another process
    Mon Aug 16 11:51:28 2010
    ARC3: Evaluating archive   log 1 thread 1 sequence 1292
    ARC3: Unable to archive log 1 thread 1 sequence 1292
          Log actively being archived by another process
    Mon Aug 16 11:52:21 2010
    ARC0: Evaluating archive   log 1 thread 1 sequence 1292
    ARC0: Unable to archive log 1 thread 1 sequence 1292
          Log actively being archived by another process
    Mon Aug 16 11:53:21 2010
    ARC0: Evaluating archive   log 1 thread 1 sequence 1292
    ARC0: Unable to archive log 1 thread 1 sequence 1292
          Log actively being archived by another process
    Mon Aug 16 11:54:21 2010
    ARC0: Evaluating archive   log 1 thread 1 sequence 1292
    ARC0: Unable to archive log 1 thread 1 sequence 1292
          Log actively being archived by another process
    Mon Aug 16 11:54:37 2010
    ARC1: Evaluating archive   log 1 thread 1 sequence 1292
    ARC1: Unable to archive log 1 thread 1 sequence 1292

    rt noe the value os log_archive_maz_process=4
    SQL> show parameter log_arch
    NAME TYPE VALUE
    log_archive_dest string
    log_archive_dest_1 string location=/arch/icai/icai_ mand
    atory
    log_archive_dest_10 string
    log_archive_dest_2 string service=hp optional reopen=15
    log_archive_dest_3 string service=drsite_delhi optional
    reopen=15
    log_archive_dest_4 string
    log_archive_dest_5 string
    log_archive_dest_6 string
    log_archive_dest_7 string
    NAME TYPE VALUE
    log_archive_dest_8 string
    log_archive_dest_9 string
    log_archive_dest_state_1 string enable
    log_archive_dest_state_10 string enable
    log_archive_dest_state_2 string enable
    log_archive_dest_state_3 string enable
    log_archive_dest_state_4 string enable
    log_archive_dest_state_5 string enable
    log_archive_dest_state_6 string enable
    log_archive_dest_state_7 string enable
    log_archive_dest_state_8 string enable
    NAME TYPE VALUE
    log_archive_dest_state_9 string enable
    log_archive_duplex_dest string
    log_archive_format string %t_%s.dbf
    log_archive_max_processes integer 4
    log_archive_min_succeed_dest integer 1
    log_archive_start boolean TRUE
    log_archive_trace integer 0
    SQL>

  • Unable to catch the error pls help

    Hi all am trying from last two hours but strangely unable to catch the error inthe below procedure..
    Ignore what the functionality is but look at these steps in the procedure ;Look at these two steps below in the procedure....
    It goes wrong at this point......
    v_acct_nb := in_acct_gp_array(i).gp_dtl_array(j).account_id;
    SELECT DISTINCT account_id INTO v_acct_dim_nb FROM ats_ACCOUNT WHERE account_id = v_acct_nb ; ----> this throws exception that no rows found
    I can see that values are passed into v_acct_nb variable.... but the second statements returns exception saying no data found .
    But
    when i hard code the value returned in the variable in the second statement like below it works ....
    v_acct_nb := in_acct_gp_array(i).gp_dtl_array(j).account_id; /* say i received the value v_acct_nb =20 */
    SELECT DISTINCT account_id INTO v_acct_dim_nb FROM ats_ACCOUNT WHERE account_id = '20'; -----> this works
    whats the issue here ?
    CREATE OR REPLACE PROCEDURE add_appl_dummy2( in_usr_id VARCHAR2,in_acct_gp_array appl_acct_gp_array,v_status_message OUT VARCHAR2)
    IS
    v_usr_dim_nb INTEGER;
    v_acct_dim_nb  VARCHAR2(35);
    v_user_exception     EXCEPTION;
    v_account_exception     EXCEPTION;
    v_acct_in_othr_group_exception  EXCEPTION;
    v_grp_already_exist_exception  EXCEPTION;
    v_acct_nb  VARCHAR2(35);
    v_error_code         VARCHAR2(50);
    v_error_msg          VARCHAR2(50);
    v_dflt_appl_acct_gp_nm VARCHAR2(50);
    v_dflt_appl_acct_gp_id INTEGER;
    v_count NUMBER;
    BEGIN
            /* verify if the user is valid */
            BEGIN
                SELECT usr_id INTO v_usr_dim_nb FROM TSS_USR WHERE access_id =in_usr_id ;
                EXCEPTION WHEN NO_DATA_FOUND THEN
                  v_error_code := SQLCODE;
                  v_error_msg  := SQLERRM;
                RAISE v_user_exception; 
            END;
    DBMS_OUTPUT.PUT_LINE('1');
            FOR i IN in_acct_gp_array.FIRST.. in_acct_gp_array.LAST
            LOOP
                /* Verify if the user has already created an account group with the same name */
                BEGIN
                  SELECT COUNT(1) INTO v_count FROM RPT_ACCT_GP WHERE usr_id=v_usr_dim_nb AND appl_acct_gp_nm=in_acct_gp_array(i).appl_acct_gp_nm;
                  IF v_count >0 THEN
    DBMS_OUTPUT.PUT_LINE('2');
                      RAISE v_grp_already_exist_exception;
                  ELSE
    DBMS_OUTPUT.PUT_LINE('3');
                      NULL;
                  END IF;
                END;
    DBMS_OUTPUT.PUT_LINE('4');
                FOR j IN in_acct_gp_array(i).gp_dtl_array.FIRST..in_acct_gp_array(i).gp_dtl_array.LAST
                LOOP
                      *v_acct_nb := in_acct_gp_array(i).gp_dtl_array(j).account_id;*    
       *SELECT DISTINCT account_id INTO v_acct_dim_nb FROM ats_ACCOUNT WHERE account_id = v_acct_nb ;*
       IF v_acct_dim_nb IS NULL THEN
        DBMS_OUTPUT.PUT_LINE('is null');
       ELSE
                     DBMS_OUTPUT.PUT_LINE(v_acct_dim_nb); /* verify if the account number is valid */
                         DBMS_OUTPUT.PUT_LINE(v_acct_nb);
                         END IF;
             END LOOP;
        END LOOP;
    COMMIT;
    DBMS_OUTPUT.PUT_LINE('9');
    v_status_message:='SUCCESS';
    EXCEPTION
        WHEN v_user_exception THEN
             v_status_message:= 'Invalid user id :'||in_usr_id ||' '||v_error_code||' '||v_error_msg;
        WHEN v_grp_already_exist_exception THEN
             v_status_message:= 'Group with the same name already exists ';
        WHEN OTHERS THEN
             v_status_message:= SQLCODE||' '||SQLERRM;
    END;
    SELECT DISTINCT account_id  FROM ats_ACCOUNT WHERE account_id='000000400127032'

    Please remove this bug anyway:
        WHEN OTHERS THEN
             v_status_message:= SQLCODE||' '||SQLERRM;

  • Error 1013000 loading application: Unable to Create Request Server Thread

    We are currently getting the following error "Error 1013000 loading application: Unable to Create Request Server Thread" when attempting to load more than 5 applications onto our new Essbase server. The O/S is Windows 2003 and we are running Essbase 6.5.5. Our old server, running Windows 2000, is not experiencing this problem.

    I think I've found the problem! It seems the server team didn't set up the swap file, hence, when physical memory started to run a little low on the box, the thread could not be created. FYI, we had already increased the SERVERTHREADS option in the Essbase.cfg file.

  • Nokia E6 - Unable to catch nokias' bluetooth devic...

    Hi,
    Why the Nokia E6 is not comfortable with each nokia devices. I tried my bluetooth headset 'Nokia 04', but the mobile is unable to catch it. Anybody have idea, why did not catching it?

    one technician at my workplace installed a signal repeater because we're too close to the tower. That is the only thing I can think of. I do not even know how they work but it seems they are frequency specific which means you'll probably need one for each network if you use different networks in the house
    Show your appreciation. Hit that kudos button real hard

  • ARC1: Unable to archive log 2 thread 1 sequence 28344

    Hi
    We have recently faced a situation that "Can not get Database Connection" when user was trying to connect through Informatica Power Analyzer. I also checked a alert.log file.I found following error in log file
    "ARC1: Unable to archive log 2 thread 1 sequence 28344".
    Can you please give me a solution to this because there is no ORA error inside alert.log file.
    Give me exact steps to resolve this if it is applicable to database.
    Thanks.
    Regards,
    RJ.

    We have recently faced a situation that "Can not get Database Connection" when user was trying to connect through Informatica Power Analyzer. I also checked a alert.log file.I found following error in log file
    "ARC1: Unable to archive log 2 thread 1 sequence 28344".
    Can you please give me a solution to this because there is no ORA error inside alert.log file.
    Give me exact steps to resolve this if it is applicable to database.
    Solution :- Archive log may be stuck. Check disk space .
    start it manually with following command
    alter system archivelog start;
    or
    alter system archivlog to '/abac/dir';
    Cheer

  • EDN not available throws runtimeFault - Fault Policy Framework unable to catch it

    Hi Team,
    I have been working on some error handling scenarios for EDN .
    From my observation if BPEL is used to publish the event, BPEL Fault policy cannot catch EDN errors (e.g., EDN unavailable) but BPEL catch activity can catch it.
    Steps performed :
    1. Create a BPEL to publish the event to EDN.
    2.Create fault policy to catch  BPEL runtime fault .
    3.Go to weblogic console to change EDNdatasource target to get "EDN datasource not available error".
    4.Test your BPEL.
    My requirement is to retry such faults and invoke human intervention after retry failure using BPEL.
    Please let me know how to achieve this

    Follow the oracle documentation
    - http://docs.oracle.com/cd/E28271_01/dev.1111/e10224/bp_faults.htm#BABIGGIB
    *The fault management framework catches all faults (business and runtime) for an invoke activity.*
    Hope that helps.
    P.S. The fault management framework main purpose is to define a enterprise wide standard policies to handle the faults that will be applied to various/all composite. Hence your specific fault that is specific to a composite should not creep into to fault management framework as this is not the enterprise standard i.e., every composite may have to handle the invalid variable, based on where it occurred and for what variable it occurred.

  • Unable to catch LDAPException  error code(53) in jsp on weblogic 6.1

    When I try to authenticate a user in LDAP whose account is inactivated the following error is thrown UNWILLING_TO_PERFORM in weblogic Server log.
    My JSP file couldn't to catch this exception, where as it could catch all other exception like NO_SUCH_OBJECT
    INVALID_CREDENTIALS. It throws 500 internal server error on browser which seems awkward to the user.
    Im Using basic authentication model by setting 401 status code in response.
    I have even tried catch block with Exception, but failed to catch it.
    Could Any one plz help me out.
    Exception in detail-----
    Servlet failed with Exception
    netscape.ldap.LDAPException: error result (53); Account inactivated. Contact system administrator.; DSA is unwilling to perform
    at netscape.ldap.LDAPConnection.checkMsg(LDAPConnection.java:4852)
            at netscape.ldap.LDAPConnection.internalBind(LDAPConnection.java:1757)
            at netscape.ldap.LDAPConnection.authenticate(LDAPConnection.java:1294)
            at netscape.ldap.LDAPConnection.authenticate(LDAPConnection.java:1303)
            at netscape.ldap.LDAPConnection.bind(LDAPConnection.java:1613)
            at weblogic.security.ldaprealmv2.LDAPDelegate.authenticate(LDAPDelegate.java:851)
            at weblogic.security.ldaprealmv2.LDAPRealm.authUserPassword(LDAPRealm.java:61)
            at weblogic.security.acl.AbstractListableRealm.authInternal(AbstractListableRealm.java:186)
            at weblogic.security.acl.AbstractListableRealm.authenticate(AbstractListableRealm.java:127)
            at weblogic.security.acl.AbstractListableRealm.getUser(AbstractListableRealm.java:110)
            at weblogic.security.acl.CachingRealm.authenticate(CachingRealm.java:945)
            at weblogic.security.acl.CachingRealm.getUser(CachingRealm.java:889)
            at weblogic.security.acl.Realm.authenticate(Realm.java:200)
            at weblogic.security.acl.Realm.getAuthenticatedName(Realm.java:233)
            at weblogic.security.acl.internal.Security.authenticate(Security.java:172)
            at weblogic.servlet.security.internal.SecurityModule.checkAuthenticate(SecurityModule.java:302)
            at weblogic.servlet.security.ServletAuthentication.weak(ServletAuthentication.java:318)
            at weblogic.servlet.security.internal.BasicSecurityModule.checkAuthenticateHeader(BasicSecurityModule.java:62)
            at weblogic.servlet.security.internal.ServletSecurityManager.checkAccess(ServletSecurityManager.java:118)
            at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2674)
            at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2427)
            at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:159)
            at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:140)
    --------------- nested within: ------------------
    weblogic.security.ldaprealmv2.LDAPRealmException: Account inactivated. Contact system administrator. - with nested exception:
    [netscape.ldap.LDAPException: error result (53); Account inactivated. Contact system administrator.; DSA is unwilling to perform]
            at weblogic.security.ldaprealmv2.LDAPDelegate.authenticate(LDAPDelegate.java:885)
            at weblogic.security.ldaprealmv2.LDAPRealm.authUserPassword(LDAPRealm.java:61)
            at weblogic.security.acl.AbstractListableRealm.authInternal(AbstractListableRealm.java:186)
            at weblogic.security.acl.AbstractListableRealm.authenticate(AbstractListableRealm.java:127)
            at weblogic.security.acl.AbstractListableRealm.getUser(AbstractListableRealm.java:110)
            at weblogic.security.acl.CachingRealm.authenticate(CachingRealm.java:945)
            at weblogic.security.acl.CachingRealm.getUser(CachingRealm.java:889)
            at weblogic.security.acl.Realm.authenticate(Realm.java:200)
            at weblogic.security.acl.Realm.getAuthenticatedName(Realm.java:233)
            at weblogic.security.acl.internal.Security.authenticate(Security.java:172)
            at weblogic.servlet.security.internal.SecurityModule.checkAuthenticate(SecurityModule.java:302)
            at weblogic.servlet.security.ServletAuthentication.weak(ServletAuthentication.java:318)
            at weblogic.servlet.security.internal.BasicSecurityModule.checkAuthenticateHeader(BasicSecurityModule.java:62)
            at weblogic.servlet.security.internal.ServletSecurityManager.checkAccess(ServletSecurityManager.java:118)
            at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2674)
            at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2427)
            at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:159)
            at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:140)
    ..so on

    It would worth if you take a look to the access log file, and see what error code is returning your operation. I detected that when you perform an ldapsearch using a user with expired password (with DS 5.2, explicitly passwordExpirationTime set to 19700101000000Z in my case) the command returns "ldap_search: DSA is unwilling to perform"
    jair@riscl~ $ ldapsearch -b "o=isp" -D "uid=RRJA2829,ou=people,o=affiliates,o=isp" -w met999 "uid=admin"
    ldap_search: DSA is unwilling to perform
    jair@riscl~ $ echo $?
    53And the access log shows (LDAP_SUCCESS for BIND operation):
    [23/Jun/2009:15:16:14 -0500] conn=1847 op=-1 msgId=-1 - fd=48 slot=48 LDAP connection from 127.0.0.1 to 127.0.0.1
    [23/Jun/2009:15:16:14 -0500] conn=1847 op=0 msgId=1 - BIND dn="uid=RRJA2829,ou=people,o=affiliates,o=isp" method=128 version=3
    [23/Jun/2009:15:16:14 -0500] conn=1847 op=0 msgId=1 - RESULT err=0 tag=97 nentries=0 etime=0 dn="uid=rrja2829,ou=people,o=affiliates,o=isp"
    [23/Jun/2009:15:16:14 -0500] conn=1847 op=1 msgId=2 - need new password
    [23/Jun/2009:15:16:14 -0500] conn=1847 op=1 msgId=2 - RESULT err=53 tag=101 nentries=0 etime=0
    [23/Jun/2009:15:16:14 -0500] conn=1847 op=2 msgId=3 - UNBIND
    [23/Jun/2009:15:16:14 -0500] conn=1847 op=2 msgId=-1 - closing - U1
    [23/Jun/2009:15:16:15 -0500] conn=1847 op=-1 msgId=-1 - closed.So, it is possible that your code doesn't catch the exception because the bind operation is returning code 0 (LDAP_SUCCESS) and for some other reason weblogic is receiving a second code 53 which is thrown by the server and not catched by your code, I really don't know if it is possible, is just what comes to my mind right now.
    I also made a test with java using the same user with expired password and couldn't catch any exception like in your case
    import java.util.Hashtable;
    import javax.naming.directory.*;*
    *import javax.naming.ldap.*;
    import javax.naming.*;
    public class Password {
       public static void main (String args[]) {
          LdapContext ctx = null;
          String userid = "uid=RRJA2829,ou=people,o=affiliates,o=isp";
          String passwd = "met999";
          try {
             Hashtable env = new Hashtable();
             env.put("java.naming.factory.initial", "com.sun.jndi.ldap.LdapCtxFactory");
             env.put("java.naming.provider.url", "ldap://riscl:389/");
             env.put("java.naming.security.principal", userid);
             env.put("java.naming.security.credentials", passwd);
             ctx = new InitialLdapContext(env, null);
          } catch (AuthenticationException e) {
                System.out.println("=> "  +e.getMessage()+  " <=");
          } catch (NamingException ne) {
             System.out.println("=> "  +ne.getMessage()+  " <=");
    }and the logs showed:
    [23/Jun/2009:15:32:41 -0500] conn=43 op=-1 msgId=-1 - fd=52 slot=52 LDAP connection from 127.0.0.1 to 127.0.0.1
    [23/Jun/2009:15:32:41 -0500] conn=43 op=0 msgId=1 - BIND dn="uid=RRJA2829,ou=people,o=affiliates,o=isp" method=128 version=3
    [23/Jun/2009:15:32:41 -0500] conn=43 op=0 msgId=1 - RESULT err=0 tag=97 nentries=0 etime=0 dn="uid=rrja2829,ou=people,o=affiliates,o=isp"
    [23/Jun/2009:15:32:42 -0500] conn=43 op=-1 msgId=-1 - closing - B1
    [23/Jun/2009:15:32:42 -0500] conn=43 op=-1 msgId=-1 - closed.but in this case LDAP is not returning the code 53 "UNWILLING TO PERFORM" to java app in the way it did to ldapsearch.
    Hope it helps.
    BR,
    jairsinho

  • Disk Swapping Issue: Error 1013000 loading application: Unable to Create Request Server Thread

    I am still getting the server thread issue (see earler posting), despite having increased the SERVERTHREADS parameter. We seem to hit a limit on the number of applications that can be loaded at any one time, and as soon as it is reached, the error appears. Unload a few applications and the error temporarily goes away.When looking at the disk swapping section in the "System Info" tab of the "Server Information" dialog, the status is "Enabled, File not Found". We have less than 4Gbs of memory (3,833,168), so Essbase should be able to display the swap file. The servers that we are experiencing this problem have Windows 2003 installed, with Essbase 6.5.5. The old server that does have this problem is running Windows 2000 and Essbase 6.5.5.On the compatibility section of the Hyperion web-site, they confirm that Essbase 6.5.5 and Windows 2003 will work.Any ideas, apart from installing Windows 2000, which apparently isn't an option?!Cheers,Doug

    I think I've found the problem! It seems the server team didn't set up the swap file, hence, when physical memory started to run a little low on the box, the thread could not be created. FYI, we had already increased the SERVERTHREADS option in the Essbase.cfg file.

Maybe you are looking for

  • Lightning 30 pin adapter issue

    I just received my iphone 5 lightning 30-pin adapter. With my particular phone case, the pin connector is not long enough to insert into the phone and charge. Has anyone experienced this issue as well? The only way to use it is to remove the phone ca

  • Maybe a bug in the enumerationof the TOC entries?

    Hi, I would like to have a table of contents (TOC) with enumerated chapters. First I adapted the chapter styles to use indented lists. This provided me with headings such as: 1. Chapter 1.1 SubChapter 2 Chapter Then I inserted a TOC. Unfortunately on

  • Start up Log In screen (box) shows "Other", how can I get rid of this user.

    My Log In screen (start up box) shows my normal user names and something called "Unknown". How do I get rid of this Unknown name? I tried deleting "Unknown" in the System > Accounts, but he is not there. Cheers. Message was edited by: ShakuZen

  • Using Shared Object Libraries

    How (or what) do we set when using shared object libraries? We have Java Native Methods which are implemented using C++ and stored in shared object libraries. We can build our project, but when trying to execute the project, the shared object librari

  • J1iex for GR

    Hello Experts, While simulating  CENVAT is not being calculated Process: J1iex for GR Posting simulation using j1iex Part 1 is captured While posting, No part 2 is getting captured. Can anyone tell me where it went wrong. Thanks.