MAXRUN timer expired error
Hello Community,
I am trying to execute a tcl script that I have downloaded from this site called wan_load_alarm. I have registered properly, however after registering I get the following error:
Jan 18 00:08:20.019: %SYS-3-CPUYLD: Task ran for (19884)msecs, more than (2000)msecs (284/22),process = EEM TCL Proc
Jan 18 00:08:20.627: %HA_EM-6-LOG: wan_load_alarm.tcl: 1Process Forced Exit- MAXRUN timer expired.
Jan 18 00:08:20.995: %HA_EM-6-LOG: wan_load_alarm.tcl: while executing
Jan 18 00:08:20.995: %HA_EM-6-LOG: wan_load_alarm.tcl: "expr $txload_total + $txload "
Jan 18 00:08:20.995: %HA_EM-6-LOG: wan_load_alarm.tcl: invoked from within
Jan 18 00:08:20.995: %HA_EM-6-LOG: wan_load_alarm.tcl: "$slave eval $Contents"
Jan 18 00:08:20.995: %HA_EM-6-LOG: wan_load_alarm.tcl: (procedure "eval_script" line 7)
Jan 18 00:08:20.995: %HA_EM-6-LOG: wan_load_alarm.tcl: invoked from within
Jan 18 00:08:20.995: %HA_EM-6-LOG: wan_load_alarm.tcl: "eval_script slave $scriptname"
Jan 18 00:08:20.995: %HA_EM-6-LOG: wan_load_alarm.tcl: invoked from within
Jan 18 00:08:20.995: %HA_EM-6-LOG: wan_load_alarm.tcl: "if {$security_level == 1} { #untrusted script
Jan 18 00:08:20.995: %HA_EM-6-LOG: wan_load_alarm.tcl: interp create -safe slave
Jan 18 00:08:20.995: %HA_EM-6-LOG: wan_load_alarm.tcl: interp share {} stdin slave
Jan 18 00:08:20.995: %HA_EM-6-LOG: wan_load_alarm.tcl: interp share {} stdout slave
Jan 18 00:08:20.995: %HA_EM-6-LOG: wan_load_alarm.tcl: ..."
Jan 18 00:08:20.995: %HA_EM-6-LOG: wan_load_alarm.tcl: (file "tmpsys:/lib/tcl/base.tcl" line 50)
Jan 18 00:08:20.995: %HA_EM-6-LOG: wan_load_alarm.tcl: Tcl policy execute failed:
Jan 18 00:08:20.995: %HA_EM-6-LOG: wan_load_alarm.tcl: 1Process Forced Exit- MAXRUN timer expired.
The script is attached.
I was wondering if someone could help me please
Cheers
Carlton
Community,
My environment variables are as follows:
event manager environment wan_load_interface Tunnel 0
event manager environment wan_load_interval 60
event manager environment wan_load_duration 60
event manager environment wan_load_threshold 100
event manager environment wan_load_history_outfile flash:wan_load_history_outfile.dat
event manager environment _email_server 10.44.108.95
event manager environment _email_from [email protected]
event manager environment _email_to [email protected]
event manager directory user policy "flash:/"
event manager session cli username "en.bcz00513"
event manager policy wan_load_alarm.tcl
Cheers
Similar Messages
-
Webutil demo problems - WHEN-TIMER-EXPIRED error
Hi there,
I have just installed the 10.1.2 forms no problems. I then downloaded the demo of webutil from OTN and cannot get it to run properly. Can anyone help.
I initially had to rename the webutil.pll (i renamed to webutil_lib.pll as recommended in an earlier forum) file to overcome an initial error and now I can at least see the runtime canvas. I dropped and re-attached the attached libraray for this pll file (Is this all I have to do?)
The problem is I immediately get the error FRM-40735:WHEN-TIMER-EXPIRED trigger raised unhandled exception ORA-06508 in the console. This error continues for every event I do that has a trigger associated, ie changing tabs or pressing buttons, the only difference in the error message is the trigger name.
I can see the canvas and various items on the tab sheet but none of the triggers that refernce webutil appear to work.
I presume I have missed something simple, possibly when I renamed the .pll file.
Any ideas.
DougDougo,
I checked our bug database for this topic and couldn't find anything reported. Can you file a TAR with support to have them analyzing your problem. (metalink.oracle.com)
Frank -
Getting time expired error in labview while getting screen capture
Hello,
I have to capture a screen shot for Agilent's Spectrum analyzer, ESA series. But Whenever i run the program i always get time expired before operation is completed. I am attaching the program and also screen-shot of program. If anyone can solve this problem i would be very glad.
Thanking you all...
Pals
Solved!
Go to Solution.
Attachments:
PSA Screen Capture via GPIB.jpg 39 KB
VISA Read Binary Block Data to File.jpg 48 KB
PSA Screen Capture via GPIB.llb 91 KBHi,
I tried to increase the time out but it didnt work. i am trying to read 1 byte at a time... So is it ok?
Thanks so much....
Attachments:
PSA Screen Capture via GPIB.jpg 39 KB
VISA Read Binary Block Data to File.jpg 48 KB -
Content has expired error - NOT related to time being off on servers??
Recently I had a site (with publishing turned on) where the top navigation and quick launch disappeared showing the content had expired error. I have triple checked the server time settings, as well as the web application time settings. I verified
with our AD guy that our time is the same. This was only happening on one site but now I see it on a different site collection sub site.
I am weak when it comes to development so I am at a brick wall. I was hoping someone could tell me or have some suggestions as to what the problem could be.
06/20/2014 09:32:09.25 w3wp.exe (0x2898)
0x29F4 SharePoint Foundation
Files
aise3 Medium
Failure when fetching document. 0x80070002 debd9c9c-88ef-f02e-a2e2-cd4bce457e16
06/20/2014 09:32:09.25 w3wp.exe (0x2898)
0x29F4 SharePoint Foundation
General
8e2s Medium
Unknown SPRequest error occurred. More information: 0x80070002
debd9c9c-88ef-f02e-a2e2-cd4bce457e16
06/20/2014 09:32:09.25 w3wp.exe (0x2898)
0x29F4 SharePoint Foundation
General
aix9j High
SPRequest.GetFile: UserPrincipalName=i:0).w|s-1-5-21-1049048376-158663921-5522801-22804, AppPrincipalName= ,bstrUrl=/PWA/ProjectBICenter/Pages/Forms/scripts.js
debd9c9c-88ef-f02e-a2e2-cd4bce457e16
06/20/2014 09:32:09.25 w3wp.exe (0x2898)
0x29F4 SharePoint Foundation
General
ai1wu Medium
System.IO.FileNotFoundException: The system cannot find the file specified. (Exception from HRESULT: 0x80070002), StackTrace:
at Microsoft.SharePoint.SPWeb.GetFileAsString(String url)
at A.SharePoint.Features.jQueryScripts.Common.GetListScripts(SPWeb& web, SPList& list)
at A.SharePoint.Features.jQueryScripts.ListSettings.get_ScriptContent()
at A.SharePoint.Features.jQueryScripts.ControlTemplates.A.SharePoint.Features.jQueryScripts.jQueryScripts.RegisterListScript(SPSite& site, SPWeb& web)
at A.SharePoint.Features.jQueryScripts.ControlTemplates.A.SharePoint.Features.jQueryScripts.jQueryScripts.OnInit(EventArgs e)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.AddedControl(Con...
debd9c9c-88ef-f02e-a2e2-cd4bce457e16
06/20/2014 09:32:09.25*
w3wp.exe (0x2898)
0x29F4 SharePoint Foundation
General
ai1wu Medium
...trol control, Int32 index) at Microsoft.SharePoint.WebControls.DelegateControl.AddControlResilient(Control ctl)
at Microsoft.SharePoint.WebControls.DelegateControl.CreateChildControlsInternal()
at Microsoft.SharePoint.WebControls.DelegateControl.CreateChildControls()
at System.Web.UI.Control.EnsureChildControls()
at Microsoft.SharePoint.WebControls.DelegateControl.OnInit(EventArgs e)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control na...
debd9c9c-88ef-f02e-a2e2-cd4bce457e16
06/20/2014 09:32:09.25*
w3wp.exe (0x2898)
0x29F4 SharePoint Foundation
General
ai1wu Medium
...mingContainer) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
at System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error)
at System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb)
at System.Web.HttpRuntime.ProcessRequ...
debd9c9c-88ef-f02e-a2e2-cd4bce457e16
06/20/2014 09:32:09.25*
w3wp.exe (0x2898)
0x29F4 SharePoint Foundation
General
ai1wu Medium
...estNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)
at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)
at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)
at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, ...
debd9c9c-88ef-f02e-a2e2-cd4bce457e16
06/20/2014 09:32:09.25*
w3wp.exe (0x2898)
0x29F4 SharePoint Foundation
General
ai1wu Medium
...Int32 flags) at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
debd9c9c-88ef-f02e-a2e2-cd4bce457e16
06/20/2014 09:32:09.25 w3wp.exe (0x2898)
0x29F4 Web Content Management
Publishing
7fz3 Medium
Setting [Display] as the FormContext.FormMode for the current page
debd9c9c-88ef-f02e-a2e2-cd4bce457e16
06/20/2014 09:32:09.25 w3wp.exe (0x2898)
0x29F4 Web Content Management
Publishing
7fz3 Medium
Setting [Display] as the FormContext.FormMode for the current page
debd9c9c-88ef-f02e-a2e2-cd4bce457e16
06/20/2014 09:32:09.25 w3wp.exe (0x2898)
0x29F4 Web Content Management
Publishing
7fz3 Medium
Setting [Display] as the FormContext.FormMode for the current page
debd9c9c-88ef-f02e-a2e2-cd4bce457e16
06/20/2014 09:32:09.27 w3wp.exe (0x2898)
0x29F4 SharePoint Foundation
General
72nz High
token not fresh for non-interactive action
debd9c9c-88ef-f02e-a2e2-cd4bce457e16
06/20/2014 09:32:09.27 w3wp.exe (0x2898)
0x29F4 SharePoint Foundation
General
8e2s Medium
Unknown SPRequest error occurred. More information: 0x80090317
debd9c9c-88ef-f02e-a2e2-cd4bce457e16
06/20/2014 09:32:09.27 w3wp.exe (0x2898)
0x29F4 SharePoint Foundation
General
aix9j High
SPRequest.SetHttpParameters: UserPrincipalName=, AppPrincipalName= ,bstrHttpMethod=GET ,bstrRequestDigest=<null> ,flags=8 ,gTranLockerId=00000000-0000-0000-0000-000000000000 ,bIgnoreTimeout=False ,bstrUserLogin=i:0#.w|domain\sp_superuser
,bstrUserKey=i:0).w|s-1-5-21-1049048376-158663921-5522801-32415 ,ulRoleCount=0 ,bstrRoles=<null> ,bWindowsMode=False ,bstrAppPrincipalName=<null> ,bIsHostHeaderAppPrincipal=False ,bstrOriginalAppPrincipalIdentifier=<null> ,bInvalidateCachedConfigurationProperties=False
,lAppDomainId=2 ,bCallstack=False debd9c9c-88ef-f02e-a2e2-cd4bce457e16
06/20/2014 09:32:09.27 w3wp.exe (0x2898)
0x29F4 SharePoint Foundation
General
ai1wu Medium
System.Runtime.InteropServices.COMException: The context has expired and can no longer be used. (Exception from HRESULT: 0x80090317), StackTrace:
at Microsoft.SharePoint.SPGlobal.CreateSPRequestAndSetIdentity(SPSite site, String name, Boolean bNotGlobalAdminCode, String strUrl, Boolean bNotAddToContext, Byte[] UserToken, SPAppPrincipalToken appPrincipalToken, String userName, Boolean bIgnoreTokenTimeout,
Boolean bAsAnonymous) at Microsoft.SharePoint.SPWeb.InitializeSPRequest()
at Microsoft.SharePoint.SPWeb.EnsureSPRequest()
at Microsoft.SharePoint.SPWeb.InitWebPublic()
at Microsoft.SharePoint.Publishing.CachedObjectFactory.OpenWebFromSuperUserSite(String webUrl)
at Microsoft.SharePoint.Publishing.CachedObjectFactory.CreateListItemFromUrl(String url, SPWeb contextWeb,...
debd9c9c-88ef-f02e-a2e2-cd4bce457e16
06/20/2014 09:32:09.27*
w3wp.exe (0x2898)
0x29F4 SharePoint Foundation
General
ai1wu Medium
... Boolean enableCheckedOutItem) at Microsoft.SharePoint.Publishing.WebControls.ConsoleUtilities.get_ContextualListItemCached()
at Microsoft.SharePoint.Publishing.WebControls.ConsoleDataSource.retrieveItemVersion()
at Microsoft.SharePoint.Publishing.WebControls.ConsoleDataSource.OnLoad(EventArgs e)
at Microsoft.SharePoint.Publishing.WebControls.XmlConsoleDataSource.OnLoad(EventArgs e)
at Microsoft.SharePoint.Publishing.WebControls.PublishingSiteActionsMenuCustomizer.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive()
at System.Web.UI....
debd9c9c-88ef-f02e-a2e2-cd4bce457e16
06/20/2014 09:32:09.27*
w3wp.exe (0x2898)
0x29F4 SharePoint Foundation
General
ai1wu Medium
...Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
at System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error)
at System.Web.HttpApplication.BeginProcessR... debd9c9c-88ef-f02e-a2e2-cd4bce457e16
06/20/2014 09:32:09.27*
w3wp.exe (0x2898)
0x29F4 SharePoint Foundation
General
ai1wu Medium
...equestNotification(HttpContext context, AsyncCallback cb)
at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)
at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)
at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)
at System.Web.Hosting.PipelineRuntime.ProcessRequ...
debd9c9c-88ef-f02e-a2e2-cd4bce457e16
06/20/2014 09:32:09.27*
w3wp.exe (0x2898)
0x29F4 SharePoint Foundation
General
ai1wu Medium
...estNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
debd9c9c-88ef-f02e-a2e2-cd4bce457e16
06/20/2014 09:32:09.27 w3wp.exe (0x2898)
0x29F4 Web Content Management
Publishing Cache
fev8
Medium
CreatePageFromUrlNoUpperCase failed with SPException. Url = '/PWA/ProjectBICenter/Pages/default.aspx'. Exception : 'Microsoft.SharePoint.SPException: The context has expired and can no longer be used. (Exception from HRESULT: 0x80090317) ---> System.Runtime.InteropServices.COMException:
The context has expired and can no longer be used. (Exception from HRESULT: 0x80090317)
at Microsoft.SharePoint.Library.SPRequestInternalClass.SetHttpParameters(String bstrHttpMethod, String bstrRequestDigest, UInt32 flags, Guid gTranLockerId, Byte[]& ppsaImpersonateUserToken, Boolean bIgnoreTimeout, String bstrUserLogin, String bstrUserKey,
UInt32 ulRoleCount, String bstrRoles, Boolean bWindowsMode, String bstrAppPrincipalName, Boolean bIsHostHeaderAppPrincipal, String bstrOriginalAppPrincipalIdentifie...
debd9c9c-88ef-f02e-a2e2-cd4bce457e16
06/20/2014 09:32:09.27*
w3wp.exe (0x2898)
0x29F4 Web Content Management
Publishing Cache
fev8 Medium
...r, ApplicationPrincipalInfo& pAppUserInfo, Boolean bInvalidateCachedConfigurationProperties, Int32 lAppDomainId, ISPManagedObjectFactory pFactory, Boolean bCallstack, ISPDataCallback pCanaryCallback)
at Microsoft.SharePoint.Library.SPRequest.SetHttpParameters(String bstrHttpMethod, String bstrRequestDigest, UInt32 flags, Guid gTranLockerId, Byte[]& ppsaImpersonateUserToken, Boolean bIgnoreTimeout, String bstrUserLogin, String bstrUserKey, UInt32
ulRoleCount, String bstrRoles, Boolean bWindowsMode, String bstrAppPrincipalName, Boolean bIsHostHeaderAppPrincipal, String bstrOriginalAppPrincipalIdentifier, ApplicationPrincipalInfo& pAppUserInfo, Boolean bInvalidateCachedConfigurationProperties, Int32
lAppDomainId, ISPManagedObjectFactory pFactory, Boolean bCallstack, ISPDataCallback pCanar...
debd9c9c-88ef-f02e-a2e2-cd4bce457e16
06/20/2014 09:32:09.27*
w3wp.exe (0x2898)
0x29F4 Web Content Management
Publishing Cache
fev8 Medium
...yCallback) --- End of inner exception stack trace ---
at Microsoft.SharePoint.SPGlobal.HandleComException(COMException comEx)
at Microsoft.SharePoint.Library.SPRequest.SetHttpParameters(String bstrHttpMethod, String bstrRequestDigest, UInt32 flags, Guid gTranLockerId, Byte[]& ppsaImpersonateUserToken, Boolean bIgnoreTimeout, String bstrUserLogin, String bstrUserKey, UInt32
ulRoleCount, String bstrRoles, Boolean bWindowsMode, String bstrAppPrincipalName, Boolean bIsHostHeaderAppPrincipal, String bstrOriginalAppPrincipalIdentifier, ApplicationPrincipalInfo& pAppUserInfo, Boolean bInvalidateCachedConfigurationProperties, Int32
lAppDomainId, ISPManagedObjectFactory pFactory, Boolean bCallstack, ISPDataCallback pCanaryCallback)
at Microsoft.SharePoint.SPGlobal.CreateSPRequestAnd...
debd9c9c-88ef-f02e-a2e2-cd4bce457e16
Jennifer Knight (MCITP, MCPD)Hi,
As you said, the error only occurs in some sites, so other sites in the same site collections are all ok?
If other sites are all ok, then please check that whether the issued sites has been modified with some unique customization.
According to the error message, a common solution is to update your web applications' time zone to match that of your SharePoint servers, then IIS reset is also required on each server in the farm.
Here are two links about this issue for your reference:
http://sureshpydi.blogspot.com/2013/04/the-content-has-expired-and-can-no.html
http://jantjesworld.blogspot.com/2013/03/the-context-has-expired-and-can-no.html
Thanks
Patrick Liang
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Patrick Liang
TechNet Community Support -
Database Error: RSR0009: Resource not available for pool. Wait-time expired
i am occassionally receiving the following error during database connections in my servlet:
Database Error: RSR0009: Resource not available for pool [webAdvisorTestPool]. Wait-time expired
i understand that this is a result of a connection leak from improper closure of my Connection object, but i thought that i was properly closing my connection.
i can get the error if i do the following steps:
1) access my login page and enter login credentials.
2) submit the login which then hits the Authentication servlet.
3) Authentication servlet authenticates and takes me to home page.
4) hit the back button to get back to the login page.
5) repeat this process until i hit the Max Pool Size (from web server).
6) then i get the error message
here are some details:
i have an Authentication servlet; here is the pertinent code from that servlet:
try { // retrieve the user and add the User object to the session DAO dao = new DAO(); Person authenticUser = dao.getPerson(userID, password); session.setAttribute("validUser", authenticUser); redirectPage = mapping.findForward("success"); }
i also have a DAO object that handles all of my DB transactions (and you can see from my code above that the Authentication servlet is using that object); here is the pertinant code from that servlet:
public DAO() { datasource = "java:comp/env/jdbc/webAdvisorTest"; } public Person getPerson(String userID, String password) throws ObjectNotFoundException { // JDBC variables DataSource ds = null; Connection conn = null; PreparedStatement stmt = null; ResultSet results = null; // User variables Person validUser = null; try { // Retrieve the DataSource from JNDI InitialContext ctx = new InitialContext(); // if this statement fails, NamingException is thrown ds = (DataSource)ctx.lookup(datasource); // get DB connection and perform SQL operations conn = ds.getConnection(); // User variables String validUserID = null; String validFName = null; String validLName = null; String validEmail = null; // get DB connection and perform SQL operations conn = ds.getConnection(); stmt = conn.prepareStatement(PERSON_QUERY); stmt.setString(1, userID); stmt.setString(2, password); results = stmt.executeQuery(); // iterate through the results if (results.next()) { validUserID = results.getString("id"); validFName = results.getString("first_name"); validLName = results.getString("last_name"); validUser = new Person(validUserID, validFName, validLName); } } // handle SQL errors catch(SQLException e) { e.printStackTrace(System.err); throw new RuntimeException("Database Error: " + e.getMessage()); } // handle JNDI errors catch(NamingException e) { throw new RuntimeException("JNDI Error: " + e.getMessage()); } // clean up resources finally { doClosure(results, stmt, conn); } // if the user was not found, throw ObjectNotFoundException if(validUser == null) { throw new ObjectNotFoundException(); } return validUser; } protected void doClosure(ResultSet results, PreparedStatement stmt, Connection conn) { if (results != null) { try { results.close(); } catch (SQLException e) { e.printStackTrace(System.err); } } if (stmt != null) { try { stmt.close(); } catch (SQLException e) { e.printStackTrace(System.err); } } if (conn != null) { try { System.out.println("R18Resources.conn before close: " + conn); conn.close(); System.out.println("R18Resources.conn after close: " + conn); System.out.println("R18Resources.conn is closed? " + conn.isClosed()); } catch (SQLException e) { System.out.println("R18Resource conn close error: " + e.getMessage()); } } }
as you can see, i've added some print statements in my connection closure block. based on my output log, each connection is being properly closed and i am not encountering any errors during that closing block.
any ideas???
Message was edited by:
millerandPlease try the following code in your doClosure method. Replace your code with the following code.
public void doClosure(ResultSet pResultSet, Statement pStmt, Connection pConn) throws Exception {
try {
if (pResultSet != null) {
pResultSet.close();
pResultSet = null;
} catch (SQLException se) {
logger.error( se );
} finally {
try {
if (pStmt != null) {
pStmt.close();
pStmt = null;
} catch (SQLException se) {
logger.error(se);
} finally {
try {
if (pConn != null) {
pConn.close();
pConn = null;
} catch (SQLException se) {
logger.error(se);
And let me know if you still face this issue. What is the application server you are using? -
how can i activate my ipad mini? every time the error message is not going there. and the version has expired.
Try this link for activation problems ...
http://support.apple.com/kb/ts3424
If you had iOS 7 BETA installed, just go to developer.apple.com and log in using your developer account. There are discussions about this issue. Otherwise... for non-developers, I'm afraid you're on your on. Use Google. -
Error : No available resource. Wait-time expired.
Hi,
We have a big problem of connection pooling in SunOne.
After out program execute a lot of sql command in a short time, SunOne 7.0 throws an Exception ---- No available resource. Wait-time expired. We modify the connection pool setting, but it doesn't work. Can someone help to solve problem.
Our connectiong pool setting as below :
<jdbc-connection-pool steady-pool-size="8" max-pool-size="32" max-wait-time-in-millis="60000" pool-resize-quantity="2" idle-timeout-in-seconds="300" is-isolation-level-guaranteed="false" is-connection-validation-required="true" connection-validation-method="auto-commit" fail-all-connections="false" datasource-classname="oracle.jdbc.pool.OracleDataSource" name="xxx">
<property value="jdbc:oracle:thin:@aa:1521:aa" name="URL"/>
<property value="xxx" name="user"/>
<property value="xxx" name="password"/>
</jdbc-connection-pool>
Thanks!
ElsaThis issue is not resolved. I got this message this afternoon. It has nothing to do with ejb. Just for confirming this issue again, I created a very simple application, a jsp that calls a servlet. In the servlet, I have a loop that calls a getNewConnection(). and returns the connection, then I create a Statement with that connection. Then I call another method releaseResources(Statement stmt)
Connection conn = stmt.getConnection();
if(conn != null)
System.out.println("connection: " + conn);
conn.close();
// conn = null; tried this one also, same result
The code is OK. including try/catch blocks ans so on.
If the number of loops greater than the connection pool size, then I get the same exception. It means the connections are not getting closed. But if I change the methode and pass Connection instead of Statement, then it workes fine.
I have tested this in App server7 with:
Oracle 9.2.0 client and ojdbc14.jar
Oracle 9.2.0 client and classes12.jar
Oracle 9.0.1 client and classes12.jar
Oracle 8.1.6 client and classes12.zip
all with thin or oci drivers.
It looks like something to do with Statement.getConnection() and the version of AppServer jdk (1.4.0.2).
I know the getConnection methode does return A connection. I can print the connection id. -
Timeout expired error when inserting into a mirrored server
We have 3 SQL Server 2012 servers.
All 3 SQL Server has the same database, ie myDB.
In 2 of the servers (say server A and B), myDB is mirrored, and on the 3rd server myDb is NOT mirrored.
When the program calls a stored procedure to insert a record into a table in the database, on the mirrored servers (server A and B) sometimes it takes up to 7 seconds and gave an error "Timeout expired. The timeout period elapsed prior
to completion of the operation or the server is not responding. This failure occured while attempting to connect to the Principle server." This doesn't happen all the time, but happens often enough throughout the day.
The 3rd server (that is NOT mirrored) never gives this Timout expired error.
Will mirrored server cause slowness in writing, thus causes the Timeout expired error ?
Thank you.Since we can live with some missing data, I think we should use asynchronous mirroring instead of synchronous, do you agree ?
That may be an options, provided that you are on Enterprise Edition. As I recall, Standard Edition only has synchronhous mirroring.
There are caveats with asynchronous mirroring. One is data loss in case of a failover, which you say that you can live with. There may be more caveats, though. Unfortunately, since my role is more of a developer than a DBA, I'm not too well versed in
the details. Maybe someone else can fill in?
Can a firewall issue cause mirror latency, that in turn causes the delay in writing to the principal database ?
Firewalls and other network hiccups certainly can cause a latency.
Erland Sommarskog, SQL Server MVP, [email protected] -
Cannot get Local Connection, No available resource, Wait-time expired
Hi Friends,
Please answer my queries below.
Thanks and Regards
Busincess Requirement
I have to display a particular set of rows in a dashboard or screen, and it is being refreshed every 1 minute, also user can update from that screen displayed values.
The below program extracts some data from database and passes to the front end through a collection where it is being displayed.
Code Logic Flow
1. CockpitAction calls CockpitOraDAO for database results
2. CockpitOraDAO is a singleton class.
3. After getting the CockpitOraDAO object, the action will then call the getLabAreaCockpitDetails() method.
getLabAreaCockpitDetails will
- Get the Connetion from the OracleConnectionManager class (It is a plain class with getPooledConnection() and releaseConnection() methods).
- Execute the query and put the result to a collection
- close the connection
- return result to the calling action.
This getLabAreaCockpitDetails() are called around once in every 1 minute
So, I believe everytime a call is made to action for cockpit display, it will take the existing object of the CockpitOraDAO class and make a call to database. i.e there will be only one object of CockpitOraDAO reside in application server at any particular interval of time.
My Understandings
1. Only 1 object of CockpitOraDAO will reside in application server (provided it is not user longer and garbage collected) at a particular instance.
2. Many objects of Connection will be created and destroyed.(Each time the getLabAreaCockpitDetails() method is called, we will get one connection from connection pool and in finally the Connection will be released to connection pool).
My Problems
It is showing the "Cannot get Local Connection, No available resource, Wait-time expired"
after running around 1 full day.
My doubts
1. Can anybody say why I get this error ?
2. There may be some connections are not closed. But I have checked at finally block, the status of the connection is closed after calling this method.
3. There may be some problem due to the singleton instane of CockpitOraDAO, Is it affecting performance ?
4. Is it valid that I have to make CockpitOraDAO as Singleton ?
public class CockpitOraDAO extends DAOAdaptor //implements BISample
private static CockpitOraDAO instance=null;
private static boolean debug = true;
* The below method will be used to provide the singleton intance of the CockpitOraDAO object.
public static CockpitOraDAO getInstance()
if (instance == null)
synchronized (CockpitOraDAO.class)
if (instance == null)
instance = new CockpitOraDAO();
return instance;
* The below method will be used to get the cockpit details of the lab area.
* This will return collecton of sample details for the specific lab.
public Collection getLabAreaCockpitDetails(Collection prevCockpitDetailList,Collection filterCriteria) throws Exception
if(debug)
System.out.println("Inside CockpitOraDAO::getLabAreaCockpitDetails() method");
Connection conn = null;
boolean sampleExists = false;
PreparedStatement pstmt=null;
ResultSet rs=null;
String returnStr=null;
StringBuffer sqlQuery = null;
String tempComment1=null, tempComment2=null;
LabCockpitDO labc=null;
LabCockpitDO labc2=null;
Collection resultList=null, manCommentList=null, labCommentList=null, labCompCommentList=null;
ArrayList result1List=null, prevCockpitDetail1List=null,filterList = null;
OracleConnectionManager manager = null;
boolean flag = false;
try
labc2 = new LabCockpitDO();
prevCockpitDetail1List = (ArrayList) prevCockpitDetailList;
sqlQuery = new StringBuffer();
sqlQuery.append("select s.sample_sample_no sample_no, s.sample_inspection_lot_no inspection_lot_no,");
manager = new OracleConnectionManager();
conn = manager.getPooledConnection("myDS");
pstmt = conn.prepareStatement(sqlQuery.toString());
if(debug)
System.out.println("Query********"+sqlQuery.toString());
rs = pstmt.executeQuery();
catch(Exception e)
//System.out.println(e);
throw e;
finally
try
manager.releaseConnection("myDS");
if(debug)
System.out.println("Connection Status Closed=true/ Open=false=["+conn.isClosed()+"]");
if(conn!=null || !conn.isClosed())
conn.close();
if(debug)
System.out.println("Connection Status After Closing Connection Closed=true/ Open=false=["+conn.isClosed()+"]");
if(rs != null)
rs.close();
if(pstmt != null)
pstmt.close();
conn = null;
pstmt=null;
rs = null;
sqlQuery=null;
returnStr=null;
labc=null;
labc2=null;
manCommentList=null;
labCommentList=null;
labCompCommentList=null;
tempComment1=null;
tempComment2=null;
resultList=null;
prevCockpitDetailList=null;
prevCockpitDetail1List=null;
catch(Exception e)
//System.out.println("Unable to Release Connection ="+e);
throw e;
//if(debug)
//System.out.println(resultList);
return result1List;
}Hi,
As you can see from other posts, this is a very common problem. Until now the cause always ends up pointing to a connection not being close.
I suggest you try to run through a full single cycle of you app, while using the CLI monitoting to check that the connections created/closed matches the expected created/closed connections. Also that the number of free connections at the end is correct. -
Password expired error when connecting via AFP to a server.
Hello everyone, I am new to OSX server and have had much help from everyone here on many issues just be reading the posts. But now I have one issue that is driving me nuts and I cannot seem to fix it.
I have 10.5.8 with Open Directory and one shared folder on that server. Half the users that connect to the server via AFP (Because they have laptops and conenct remotely) get a password expired error. As a work around I have setup new accounts for them with different ID's which do work but no matter what I do, the old ones wont. I have also noticed that a user can try and connect just one time and thier account gets disabled even though we have it set to disable after 5 failed attempts.
Any help would be greatly appreciated. Thank you.Hi
One thing you could try is to double-check the Self Signed Certificate has not expired. I've seen this cause similar problems to yours. If it has expired you'll see a Red Triangle by the side of it. Amend it and change the start date to the current date and the expiry date to sometime in the future. It makes sense to set it to 3 or more years from the set start date. There's no logical reason to leave it at the default 12 months. Especially as you'll probably forget this and not watch out for it when it's due to expire.
After you've done this you could set a Password Policy for your users to change their passwords at next login.
Tony -
BPC Optimization Server Time Out error message
We’re using BPC 7.5 MS and on patch level 111.02
There’s two front-end servers and one back-end.
When completing a full optimization with compression on an application we immediately get the optimization popup screen with no processing information only a “Server Time Out” error message.
Optimization was taking a long to time run and sometimes timed out. To try and resolve this issue we have just updated indexes and statistics and during our test in production we now receive the “Server Time Out” error message immediately. However, the records from tbl.Factwb and tbl.Fac2 did move to the tbl.Fact.
Our development environment test ran fine.
Any suggestions?
Thanks.Hi Michael,
please look in the logs maybe you will found more informations regarding the timeout and eventually share it.
There are several notes about a timeout in 10 version,
1394533 - 'Server Time Out' error when performing Modify Application, Full Process of a dimension, or Full Optimize this is related with NLB
but it could be also related with the web.config 1628908 - How to fix Optimize with compress time-out failure
or if you reach the max number of connection
1635749 - Error Message: Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool
Regards
Roberto -
i downloaded th trial version but i cant open photoshop , and it is telling me time expired , What to do ?
Supply pertinent information for quicker answers
The more information you supply about your situation, the better equipped other community members will be to answer. Consider including the following in your question:
Adobe product and version number
Operating system and version number
The full text of any error message(s)
What you were doing when the problem occurred
Screenshots of the problem
Computer hardware, such as CPU; GPU; amount of RAM; etc. -
WHEN-TIMER-EXPIRED
declare
var number :=10;
v_al char(3);
v_al_ti date;
begin
for i in 1..var loop
:control.showdate := TO_CHAR(SYSDATE,'DD-MONTH-YYYY');
:control.showtime := TO_CHAR(SYSDATE,'HH24-MI-SS AM');
select alarm, alert_date, alert_time
into v_al, v_al_da, v_al_ti
from remind
where alarm='ON';
if v_al = 'ON' AND
v_al_ti = to_char(sysdate,'HH24-MI-SS AM') AND
v_al_da = to_char(sysdate,'DD-MONTH-YYYY')then
message('alert is on ');
end if;
if var =9 then
var:= var+1;
end if;
end loop;
end;
THE CLOCK WORK BUT THE FORMAT MASK GIVE ERROR.
I WANT TO RAISE A MESSAGE WHEN AN REMINDER ENTRY HAVE ALARM = 'ON'
AND DATE = SYSDATE
AND TIME = SYSDATE.
THE TABLE HAVE FOLLOWING COLUMNS.
SQL> desc remind;
Name Null? Type
RE_ABOUT VARCHAR2(100)
ALARM CHAR(3)
ALERT_TIME DATE
ALERT_DATE DATE
THANKS IN ADVANCE.
REPLY ME ON MY EMAIL.
MUHAMMAD NADEEM
MARDAN (PAKISTAN)
[email protected]
+92-0301-8334434Hi Nadeem,
Change these two lines of code:
:control.showdate := TO_CHAR(SYSDATE,'DD-MONTH-YYYY');
:control.showtime := TO_CHAR(SYSDATE,'HH24-MI-SS AM');
Try with replace the above with select statement like below.
select TO_CHAR(SYSDATE,'DD-MONTH-YYYY'), TO_CHAR(SYSDATE,'HH24-MI-SS AM') INTO :control.showdate, :control.showtime From dual;
Cheers -
Changed Database Service Tier resulted in lots of "Timeout-expired-errors"
Last night I changed database service tier from Web Edition to Standard S0. Since then we are getting a lot of errors like this:
"Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding."
Before the change we had no such errors. I have tried to make a new deployment of our cloud services but it doesn't change anything. It still fill the error logs with timeout-expired-errors and the site itself seems to be significantly slower than before.
What's the problem? I assume the Standard S0 service tier should be sufficient in performance. We don't have much traffic on the site.
Hope someone can shed a light...Folks we know that changing business models is a hard thing to do. In the Web/Business case, you pay on size of the DB and you get whatever performance we have at the time. Sometimes this is great, other times this is ok and sometimes performance
is very poor. Customers have given us feedback that this unpredictable performance is very difficult to deal with.
Using this feedback as a key input, the business model for Basic/Standard/Premium is $/perf. As Jan points out below, understanding what resources your consuming is a great first step before moving to B/S/P.
Your mileage may vary here. Many customers see a decrease because of this business model change. Others see no impact, and some will see an increase if their DBs are very small and consume a lot of resources.
Jan, I and the team would be happy to help customers move into the new business model. To have great conversations will need some customer specifics that aren't best shared in a public forum. guyhay@microsoft is my email if you'd like to have
that conversation. -
Time Machine Error, Backup to large - 496 avail and only 79 needs backed up
I have a 1 TB TM with 496.9 GB available (I already have 1 computer backed up on TM)
The second computer I want to back up has 80 GB used of a 500 GB HD.
Time Machine prefs show 496.9 GB available on TM and shows the back up will be 79.1 GB total.
But I get a error each time I try to back up saying " Time Machine Error, This backup is too large for the backup volume. The backup requires 614.1 GB but only 496.9 are available."
Two questions:
How can 496.9 GB be to small for a 79.1 GB backup?
Why does a 79.1 GB backup require 614.1 GB of space?
Thank You
DougHere's what Backup Buddy says:
Starting standard backup
Backup destination alias resolved to path: /Volumes/Doug's Time Capsule
Disk image /Volumes/Doug's Time Capsule/Jackie’s_001b63b59975.sparsebundle mounted at: /Volumes/Backup of Jackie’s
Backing up to: /Volumes/Backup of Jackie’s/Backups.backupdb
Event store UUIDs don't match for volume: Backup of Jackie’s
Event store UUIDs don't match for volume: Macintosh HD
Backup content size: 432.7 GB excluded items size: 0 bytes for volume Backup of Jackie’s
Backup content size: 80.2 GB excluded items size: 1007.5 MB for volume Macintosh HD
Starting pre-backup thinning: 614.25 GB requested (including padding), 496.85 GB available
No expired backups exist - deleting oldest backups to make room
Error: backup disk is full - all 0 possible backups were removed, but space is still needed.
Backup Failed: unable to free 614.25 GB needed space
Backup failed with error: Not enough available disk space on the target volume.
Ejected Time Machine disk image.
Ejected Time Machine network volume.
Maybe you are looking for
-
Not able to extract performance data from .ETL file using xperf commands. Xperf Commands: xperf –i C:\TempFolder\Test.etl -o C:\TempFolder\BootData.csv –a process Getting following error after executing above command: "33288636 Events were lost in
-
Help...HP 2710xi...memory card transfer problems
I accidentally disconnected the network drive that my HP 2710xi uses to transfer images from my memory card to my computer.....and now when i try to transfer the images using "image zone" it says that it "cannot connect" to my printer... Does anyone
-
So, I thought I had an external drive problem. My drive wouldn't work on either of my Thunderbolt ports on my 2011 Imac. Then I connected the same thunderbolt drive and adapter to my Mac Air, and it worked. It's a 2011 Imac, Intel core i7, lots of
-
The sound on my Ipod video doen't work
Is there anything I can do, or should I send it in to be serviced?
-
More Archivelog generation at a particular time?
Dear Experts, OS-SOlaris DB version=9.2.0.6 our database is generating more archive logs in night between 2Am and 3AM.During this period no jobs are scheduled to run either from OS or from database itself.i want to invistigate what makes database to