ExecutorService creating tasks to send HTTP requests - time out
In my java application, I have introduced ExecutorService to create tasks. The tasks consist of sending HTTP requests to an application server, to process transactions. The ExecutorService will process about 1000 requests.
The executor process the transactions and terminates OK, but some of the transactions timed out (before introducing ExecutorService, I was just sending one transaction at time, all the transactions were processed OK; but, it was taking a long time to process).
See the code below.
private ExecutorService threadExecutor;
threadExecutor = Executors.newFixedThreadPool(30);
threadExecutor.execute(transaction);
try
//Shutting down the ThreadExecutor
threadExecutor.shutdown();
threadExecutor.awaitTermination(30, TimeUnit.SECONDS);
threadExecutor.shutdownNow();
catch (InterruptedException e)
System.out.println("ERROR - cannot shutdown the ThreadExecutor - exception is: " + e);
Is this the best way to implement this use case?
Thank you.
From the above code, it seems like you are starting only a single transaction in a thread pool. Or does the transaction object you pass to the threadExecutor spawn more tasks for the executor?
If you are indeed still making all HTTP requests from the single transaction object, then yes, it will 'time-out' after 30 seconds, since the ExecutorService was instructed to stop its threads after that period of time.
Your description of the use case is actually a good example of the usage of an ExecutorService, since it is faster to do 1000 HTTP requests in parallel than it is to do them sequentially.
Consider this:
ExecutorService threadExecutor = Executors.newFixedThreadPool(30);
for (int i = 0; i < 1000; i++)
threadExecutor.execute(new Transaction());
try
threadExecutor.shutdown();
threadExecutor.awaitTermination(30, TimeUnit.SECONDS);
threadExecutor.shutdownNow();
catch (InterruptedException e)
// Ignore
}This will spawn 1000 transactions that will execute in parallel, with max. 30 running at any single point in time. Any transactions still not executed after 30 seconds will be terminated.
Hope this helps.
--JH
Edited by: Kramor_dude on Nov 5, 2009 6:55 AM
Similar Messages
-
Problem in sending HTTP request to the server.
Hi,
i dveloped an ant script for sar deployment.
i deployed a sar to my local soa server with ant script. it got deployed succesfully..
but when i try to deploy to a remote server, getting the below error..
"Problem in sending HTTP request to the server. Please make sure the server is up and/or check standard HTTP response code for 404"
but the server is up and runnig and i am able to ping it from my machine and also access the console...
below is my script
build.properties
wn.bea.home=C:/Oracle/Middleware
all.needed.jars.path=D:/SourceCode/neededJAR
oracle.soa.home=C:/Oracle/Middleware/Oracle_SOA1
java.passed.home=C:/Oracle/Middleware/jdk160_24
#Deployment environment
deployment.plan.environment=DEV
#Deploy Action
deployAction =redeploy
#credentials
user=weblogic
password=welcome1
#For Composite deployment
serverURL=http://10.177.154.6:7001
forceDefault=true
server=10.177.154.6
port=7001
sarLocation=D:/SourceCode/JAR
build.xml
<?xml version="1.0" encoding="iso-8859-1"?>
<project name="soaDeployAll" default="deployAll">
<echo>basedir ${basedir}</echo>
<property environment="env"/>
<echo>current folder ${basedir}</echo>
<property file="${basedir}/build.properties"/>
<taskdef resource="net/sf/antcontrib/antlib.xml">
<classpath>
<pathelement location="${all.needed.jars.path}/ant-contrib.jar"/>
</classpath>
</taskdef>
<target name="init">
<tstamp>
<format property="timestamp" pattern="yyyy-MM-dd_HH-mm-ss"/>
</tstamp>
<property name="build.log.dir" location="${basedir}/buildlogs"/>
<mkdir dir="${build.log.dir}"/> <property name="build.log.filename" value="build_${timestamp}.log"/>
<record name="${build.log.dir}/${build.log.filename}" loglevel="verbose" append="false"/>
<echo message="Build logged to ${build.log.filename}"/>
</target>
<target name="deployAll" depends="init">
<echo>Deploy for environment ${deployment.plan.environment}</echo>
<antcall target="deployAllComposites"/>
</target>
<!-- Following Actions are performed for Composite files in Managed Server - Deploy,Redeploy -->
<target name="deployAllComposites" depends="init">
<foreach target="deployComposites" param="Files">
<fileset dir="${sarLocation}" casesensitive="no" includes="*.jar"/>
</foreach>
</target>
<target name="deployComposites" depends="init">
<basename file="${Files}" property="basename"/>
<echo>Deploy Project ${basename} for environment ${deployment.plan.environment}</echo>
<if>
<equals arg1="${deployAction}" arg2="deploy" />
<then>
<echo message="Deploying composites in Managed server........." />
<ant antfile="${oracle.soa.home}/bin/ant-sca-deploy.xml" inheritAll="true" target="deploy">
<property name="serverURL" value="${serverURL}"/>
<property name="user" value="${user}"/>
<property name="password" value="${password}"/>
<property name="overwrite" value="false"/>
<property name="forceDefault" value="${forceDefault}"/>
<property name="sarLocation" value="${sarLocation}/${basename}"/>
</ant>
</then>
<else>
<echo message="ReDeploying composites in Managed server........." />
<ant antfile="${oracle.soa.home}/bin/ant-sca-deploy.xml" inheritAll="true" target="deploy">
<property name="serverURL" value="${serverURL}"/>
<property name="user" value="${user}"/>
<property name="password" value="${password}"/>
<property name="overwrite" value="true"/>
<property name="forceDefault" value="${forceDefault}"/>
<property name="sarLocation" value="${sarLocation}/${basename}"/>
</ant>
</else>
</if>
</target>
</project>
please help....Hi,
Give the serverURL as http://<host>:<managed.server.port>/soa-infra/deployer and try.
e.g . http://10.177.154.6:8001/soa-infra/deployer
Regards,
Neeraj Sehgal -
tried to reinstall OSX Mountain Lion 10.8.4 and every time i start with the installation i get a requested time out message, had to shut down my MacBook Pro retina. Now when i start up it automatically start internet recovery for two ouers. After the internet recovery the same problem with reinstalling OSX message
Gave up on the GUI. This script derived from http://blog.netnerds.net/2012/07/os-x-how-to-setup-nat-on-lion-and-mountain-lion / seems to work for me:
gwdev=en0 # This is my WiFi connection (has Internet connection)
targetdev=en1 # This is the USB to Ethernet adapter (to give Internet connection)
/sbin/ifconfig $targetdev down
/sbin/ifconfig bridge0 create
/sbin/ifconfig bridge0 up
/sbin/ifconfig bridge0 addm $gwdev
/sbin/ifconfig bridge0 $HOST_ADDR
/sbin/route add default -interface bridge0 -ifscope bridge0 -cloning
/usr/sbin/sysctl -w net.inet.ip.forwarding=1
/sbin/ipfw add 100 divert natd ip from any to any via $gwdev
/usr/sbin/natd -interface $gwdev -use_sockets -same_ports -unregistered_only -dynamic -clamp_mss -enable_natportmap -natportmap_interface $targetdev -
Dears,
I have a problem, each time i open any website from safari, and error pops up saying request time out!
What can i do?You will need to restore your iDevice from the same computer that you most recently synced to.
Read this: http://support.apple.com/kb/ht1212
If you can't do the restore then you will need to try recovery mode.
Read this: http://support.apple.com/kb/ht1808 -
What happend if we keep http connection time out as 0
what happend if we define http connection time out as 0 or less than 1 ..pls give reply.
i am seriously struck up with some problem
depending on this our enhancement is dependedAre you still facing the same issue ? This majorly relates to network problem or probably some issue on server end , have you tried to contact your host ?
Thanks,
Sanjit -
Request time out when creating content database
Hello,
my problem is, that i cannot create a SharePoint content database via the central administration.
My Setup is the following:
SharePoint Server 2013 Enterprise Farm
1x Applikation Server/WFE (Windows Server 2012 SP 1)
1x Database Server MSSQL Server 2012 (Windows Server 2012 SP 1)
1x TFS 2013 (Windows Server 2012 SP 1)
all of them are hosted in the same Hyper-V Environment. It is not the fasted Hyper-V Environment existing on planet earth.
The weirdest part of the problem is, i am able to create a content database via powershell.
I am running in some kind of time out issue related to the IIS and CA of that Applikation Server.
Here is the ULS Log from the failling content database creation via CA
12.18.2014 10:26:09.47 w3wp.exe (0x2304)
0x1B40 SharePoint Foundation
Monitoring b4ly
High Leaving Monitored Scope (PostAuthenticateRequestHandler). Execution Time=8,5997
4deed69c-2f53-a086-14bb-cbf40b020025
12.18.2014 10:26:09.66 w3wp.exe (0x2304)
0x1B40 SharePoint Foundation
General g3qj
High [Forced due to logging gap, cached @ 12/18/2014 10:26:09.50, Original Level: Verbose] url is in site
4deed69c-2f53-a086-14bb-cbf40b020025
12.18.2014 10:26:09.66 w3wp.exe (0x2304)
0x1B40 SharePoint Foundation
Asp Runtime aj1kp
High [Forced due to logging gap, Original Level: Verbose] SPRequestModule.PreSendRequestHeaders
4deed69c-2f53-a086-14bb-cbf40b020025
12.18.2014 10:26:09.73 w3wp.exe (0x2304)
0x1B40 SharePoint Foundation
Database ahjqp
High [Forced due to logging gap, cached @ 12/18/2014 10:26:09.70, Original Level: Verbose] SQL connection time: 14.765 for Data Source=SQLSERVER\DATABASE;Initial Catalog=master;Integrated Security=True;Pooling=False
4deed69c-2f53-a086-14bb-cbf40b020025
12.18.2014 10:26:09.73 w3wp.exe (0x2304)
0x1B40 SharePoint Foundation
Topology 8xqz
High [Forced due to logging gap, Original Level: Medium] Updating SPPersistedObject {0}. Version: {1} Ensure: {2}, HashCode: {3}, Id: {4}, Stack: {5}
4deed69c-2f53-a086-14bb-cbf40b020025
12.18.2014 10:26:09.77 w3wp.exe (0x2304)
0x1B40 SharePoint Foundation
Upgrade aj2jl
High 12/18/2014 10:26:09.77 w3wp (0x2304) 0x1B40 SharePoint Foundation Upgrade ServerSequence aj2jl DEBUG Search ServerSequence returns TargetBuildVersion '15.0.4675.1000' 4deed69c-2f53-a086-14bb-cbf40b020025
4deed69c-2f53-a086-14bb-cbf40b020025
12.18.2014 10:26:09.77 w3wp.exe (0x2304)
0x1B40 SharePoint Foundation
Upgrade aj2jk
High 12/18/2014 10:26:09.77 w3wp (0x2304) 0x1B40 SharePoint Foundation Upgrade ServerSequence aj2jk DEBUG Setting Search ServerSequence version (guid '53d65723-a256-48d7-a477-1d3466089eef') to BuildVersion '15.0.4675.1000'
4deed69c-2f53-a086-14bb-cbf40b020025 4deed69c-2f53-a086-14bb-cbf40b020025
12.18.2014 10:26:09.77 w3wp.exe (0x2304)
0x1B40 SharePoint Foundation
Upgrade aj2jl
High 12/18/2014 10:26:09.77 w3wp (0x2304) 0x1B40 SharePoint Foundation Upgrade ServerSequence aj2jl DEBUG Search ServerSequence returns TargetBuildVersion '15.0.4675.1000' 4deed69c-2f53-a086-14bb-cbf40b020025
4deed69c-2f53-a086-14bb-cbf40b020025
12.18.2014 10:26:09.83 w3wp.exe (0x2304)
0x1B40 SharePoint Foundation
Database 8acb
High [Forced due to logging gap, cached @ 12/18/2014 10:26:09.81, Original Level: VerboseEx] Reverting to process identity
4deed69c-2f53-a086-14bb-cbf40b020025
12.18.2014 10:26:09.83 w3wp.exe (0x2304)
0x1B40 SharePoint Foundation
Database ahjqp
High [Forced due to logging gap, Original Level: Verbose] SQL connection time: 0.2565 for Data Source=SQLSERVER\DATABASE;Initial Catalog=SharePoint_2013_Prod_Config;Integrated Security=True;Enlist=False;Pooling=True;Min
Pool Size=0;Max Pool Size=100;Connect Timeout=400
4deed69c-2f53-a086-14bb-cbf40b020025
12.18.2014 10:26:12.16 w3wp.exe (0x2304)
0x1B40 SharePoint Foundation
Database ahjqp
High [Forced due to logging gap, cached @ 12/18/2014 10:26:09.86, Original Level: Verbose] SQL connection time: 0.1719 for Data Source=SQLSERVER\DATABASE;Initial Catalog=SharePoint_2013_Prod_Config;Integrated Security=True;Enlist=False;Pooling=True;Min
Pool Size=0;Max Pool Size=100;Connect Timeout=400
4deed69c-2f53-a086-14bb-cbf40b020025
12.18.2014 10:26:12.16 w3wp.exe (0x2304)
0x1B40 SharePoint Foundation
Database 8acb
High [Forced due to logging gap, Original Level: VerboseEx] Reverting to process identity
4deed69c-2f53-a086-14bb-cbf40b020025
12.18.2014 10:26:12.19 w3wp.exe (0x2304)
0x1B40 SharePoint Foundation
Topology 84y4
High Granting VIEW SERVER STATE permission for S-1-5-21-3747686279-3738247048-1854932723-1131.
4deed69c-2f53-a086-14bb-cbf40b020025
12.18.2014 10:26:12.23 w3wp.exe (0x2304)
0x1B40 SharePoint Foundation
Topology 84y5
High VIEW SERVER STATE permission updated successfully.
4deed69c-2f53-a086-14bb-cbf40b020025
12.18.2014 10:26:12.23 w3wp.exe (0x2304)
0x1B40 SharePoint Foundation
Topology 84y4
High Granting CONTROL SERVER permission for S-1-5-21-3747686279-3738247048-1854932723-1131.
4deed69c-2f53-a086-14bb-cbf40b020025
12.18.2014 10:26:12.25 w3wp.exe (0x2304)
0x1B40 SharePoint Foundation
Topology 84y5
High CONTROL SERVER permission updated successfully.
4deed69c-2f53-a086-14bb-cbf40b020025
12.18.2014 10:26:12.33 w3wp.exe (0x2304)
0x1B40 SharePoint Foundation
Database 8acb
High [Forced due to logging gap, cached @ 12/18/2014 10:26:12.30, Original Level: VerboseEx] Reverting to process identity
4deed69c-2f53-a086-14bb-cbf40b020025
12.18.2014 10:26:12.33 w3wp.exe (0x2304)
0x1B40 SharePoint Foundation
Database ahjqp
High [Forced due to logging gap, Original Level: Verbose] SQL connection time: 16.4685 for Data Source=SQLSERVER\DATABASE;Initial Catalog=master;Integrated Security=True;Enlist=False;Pooling=False;Min Pool Size=0;Max
Pool Size=100;Connect Timeout=400 4deed69c-2f53-a086-14bb-cbf40b020025
12.18.2014 10:26:12.39 w3wp.exe (0x2304)
0x1B40 SharePoint Foundation
Database 8acb
High [Forced due to logging gap, cached @ 12/18/2014 10:26:12.38, Original Level: VerboseEx] Reverting to process identity
4deed69c-2f53-a086-14bb-cbf40b020025
12.18.2014 10:26:12.39 w3wp.exe (0x2304)
0x1B40 SharePoint Foundation
Database ahjqp
High [Forced due to logging gap, Original Level: Verbose] SQL connection time: 11.6743 for Data Source=SQLSERVER\DATABASE;Initial Catalog=master;Integrated Security=True;Enlist=False;Pooling=False;Min Pool Size=0;Max
Pool Size=100;Connect Timeout=400 4deed69c-2f53-a086-14bb-cbf40b020025
12.18.2014 10:26:12.42 w3wp.exe (0x2304)
0x1B40 SharePoint Foundation
Database 7t6o
High The WSS_Content_uitest database does not exist. It will now be created.
4deed69c-2f53-a086-14bb-cbf40b020025
12.18.2014 10:26:15.11 w3wp.exe (0x2304)
0x1B40 SharePoint Foundation
Database ahjqp
High [Forced due to logging gap, cached @ 12/18/2014 10:26:12.44, Original Level: Verbose] SQL connection time: 9.9785 for Data Source=SQLSERVER\DATABASE;Initial Catalog=master;Integrated Security=True;Enlist=False;Pooling=False;Min
Pool Size=0;Max Pool Size=100;Connect Timeout=400
4deed69c-2f53-a086-14bb-cbf40b020025
12.18.2014 10:26:15.11 w3wp.exe (0x2304)
0x1B40 SharePoint Foundation
Database ab20s
High [Forced due to logging gap, Original Level: Medium] Setting the {0} option to {1} on the database {2}.
4deed69c-2f53-a086-14bb-cbf40b020025
12.18.2014 10:26:15.14 w3wp.exe (0x2304)
0x1B40 SharePoint Foundation
Upgrade ajy0d
High 12/18/2014 10:26:15.14 w3wp (0x2304) 0x1B40 SharePoint Foundation Upgrade SPUtility ajy0d DEBUG File C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\Template\sql\store.sql, Time out =
0 sec 4deed69c-2f53-a086-14bb-cbf40b020025
4deed69c-2f53-a086-14bb-cbf40b020025
12.18.2014 10:28:07.46 w3wp.exe (0x2304)
0x1B40 SharePoint Foundation
Database ahjqp
High [Forced due to logging gap, cached @ 12/18/2014 10:26:15.16, Original Level: Verbose] SQL connection time: 11.4389 for Data Source=SQLSERVER\DATABASE;Initial Catalog=WSS_Content_uitest;Integrated Security=True;Enlist=False;Pooling=False;Min
Pool Size=0;Max Pool Size=100;Connect Timeout=400
4deed69c-2f53-a086-14bb-cbf40b020025
12.18.2014 10:28:07.46 w3wp.exe (0x2304)
0x1B40 SharePoint Foundation
Database fa45
High System.Threading.ThreadAbortException: Thread was being aborted. at SNIReadSyncOverAsync(SNI_ConnWrapper* , SNI_Packet** , Int32 ) at SNINativeMethodWrapper.SNIReadSyncOverAsync(SafeHandle
pConn, IntPtr& packet, Int32 timeout) at System.Data.SqlClient.TdsParserStateObject.ReadSniSyncOverAsync() at System.Data.SqlClient.TdsParserStateObject.TryReadNetworkPacket() at System.Data.SqlClient.TdsParserStateObject.TryPrepareBuffer()
at System.Data.SqlClient.TdsParserStateObject.TryReadByte(Byte& value) at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler,
TdsParserStateObject stateObj, Boolean& dataReady) at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1
completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at Microsoft.SharePoint.Utilities.SqlSession.ExecuteScript(TextReader textReader, Int32
commandTimeout) 4deed69c-2f53-a086-14bb-cbf40b020025
12.18.2014 10:28:07.47 w3wp.exe (0x2304)
0x1B40 SharePoint Foundation
Database fa46
High at Microsoft.SharePoint.Utilities.SqlSession.ExecuteScript(String path, Int32 commandTimeout) at Microsoft.SharePoint.Upgrade.SPUtility.ExecuteSqlFile(SqlSession sqlSession, ISqlSession isqlSession,
SqlFile sqlFileId, Int32 timeOut) at Microsoft.SharePoint.Administration.SPDatabase.Provision(SPDatabase database, SqlConnectionStringBuilder connectionString, SqlFile sqlFileId, Dictionary`2 options) at Microsoft.SharePoint.Administration.SPContentDatabase.Provision()
at Microsoft.SharePoint.Administration.SPContentDatabaseCollection.Add(SPContentDatabase database, Boolean provision, Guid webApplicationLockId, Int32 addFlags) at Microsoft.SharePoint.Administration.SPContentDatabaseCollection.Add(Guid
newDatabaseId, String strDatabaseServer, String strDatabaseName, String strDatabaseUsername, String strDatabasePassword, Int32 warningSiteCount, Int32 maximumSiteCount, Int32 status, Boolean provision, Guid lockId, Int32 addFlags) at Microsoft.SharePoint.ApplicationPages.NewContentDBPage.BtnSubmit_Click(Object
sender, EventArgs e) at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) 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.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.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags) at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr
rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
4deed69c-2f53-a086-14bb-cbf40b020025
12.18.2014 10:28:07.47 w3wp.exe (0x2304)
0x1B40 SharePoint Foundation
Database tzku
High ConnectionString: 'Data Source=SQLSERVER\DATABASE;Initial Catalog=WSS_Content_uitest;Integrated Security=True;Enlist=False;Pooling=False;Min Pool Size=0;Max Pool Size=100;Connect Timeout=400' Partition:
NULL ConnectionState: Closed ConnectionTimeout: 400
4deed69c-2f53-a086-14bb-cbf40b020025
12.18.2014 10:28:07.50 w3wp.exe (0x2304)
0x1B40 SharePoint Foundation
Database tzkv
High SqlCommand: '--FixO15:3174405 create role SPReadOnly This line should not be changed or removed, otherwise upgrade would fail. IF NOT EXISTS (SELECT * FROM sys.database_principals WHERE name = N'SPReadOnly'
AND type = 'R') CREATE ROLE [SPReadOnly] DECLARE @objname sysname, @objtype NVARCHAR(max), @datatype NVARCHAR(max), @query NVARCHAR(max) -- Grant SELECT on all SharePoint stored procedures and functions DECLARE c CURSOR LOCAL FAST_FORWARD
FOR SELECT ROUTINE_NAME, ROUTINE_TYPE, DATA_TYPE FROM INFORMATION_SCHEMA.ROUTINES WHERE ROUTINE_SCHEMA = 'DBO' OPEN c WHILE 1 = 1 BEGIN FETCH NEXT FROM c INTO
@objname, @objtype, @datatype IF @@FETCH_STATUS = -1 BREAK IF @@FETCH_STATUS = 0 BEGIN -- Inline table-valued functions
IF (@objtype = 'FUNCTION' AND @datatype = 'TABLE') SET @query = 'GRANT SELECT ON [dbo].' + quotename(@objname) + ' TO [SPReadOnly]' EXEC sp_executesql
@query END END CLOSE c DEALLOCATE c -- Grant SELECT on all SharePoint tables DECLARE c CURSOR LOCAL FAST_FORWARD FOR SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_SCHEMA = 'DBO' OPEN c WHILE 1 = 1 BEGIN FETCH NEXT FROM c INTO @objname IF @@FETCH_STATUS = -1 BREAK IF @@FETCH_STATUS
= 0 BEGIN SET @query = 'GRANT SELECT ON [dbo].' + quotename(@objname) + ' TO [SPReadOnly]' EXEC sp_executesql @query END END CLOSE
c DEALLOCATE c -- Grant EXECUTE on User-defined type where schema is dbo DECLARE c CURSOR LOCAL FAST_FORWARD FOR SELECT NAME FROM SYS.TYPES WHERE IS_USER_DEFINED = 1
AND SCHEMA_ID = schema_id(N'dbo') OPEN c WHILE 1 = 1 BEGIN FETCH NEXT FROM c INTO @objname IF @@FETCH_STATUS = -1 BREAK IF @@FETCH_STATUS
= 0 BEGIN SET @query = 'GRANT EXECUTE ON TYPE::[dbo].' + quotename(@objname) + ' TO [SPReadOnly]' EXEC sp_executesql @query END END CLOSE
c DEALLOCATE c ' CommandType: Text CommandTimeout: 0
4deed69c-2f53-a086-14bb-cbf40b020025
12.18.2014 10:28:07.50 w3wp.exe (0x2304)
0x1B40 SharePoint Foundation
Database aek90
High SecurityOnOperationCheck = False
4deed69c-2f53-a086-14bb-cbf40b020025
12.18.2014 10:28:07.50 w3wp.exe (0x2304)
0x1B40 SharePoint Foundation
Monitoring b4ly
High Leaving Monitored Scope (Database.Provision (WSS_Content_uitest on SQLSErver\database)). Execution Time=115148.4664
4deed69c-2f53-a086-14bb-cbf40b020025
12.18.2014 10:28:07.50 w3wp.exe (0x2304)
0x1B40 SharePoint Foundation
Topology 8dyx
High Deleting the SPPersistedObject, SPContentDatabase Name=WSS_Content_uitest.
4deed69c-2f53-a086-14bb-cbf40b020025
12.18.2014 10:28:07.56 w3wp.exe (0x2304)
0x1B40 SharePoint Foundation
Topology bw4w
High [Forced due to logging gap, cached @ 12/18/2014 10:28:07.53, Original Level: Medium] {0}
4deed69c-2f53-a086-14bb-cbf40b020025
12.18.2014 10:28:07.56 w3wp.exe (0x2304)
0x1B40 SharePoint Foundation
Database 8acb
High [Forced due to logging gap, Original Level: VerboseEx] Reverting to process identity
4deed69c-2f53-a086-14bb-cbf40b020025
12.18.2014 10:28:07.60 w3wp.exe (0x2304)
0x1B40 SharePoint Foundation
Monitoring b4ly
High Leaving Monitored Scope (Creating Content Database (WSS_Content_uitest on SQLServer\Database)). Execution Time=115311.5636
4deed69c-2f53-a086-14bb-cbf40b020025
12.18.2014 10:28:07.64 w3wp.exe (0x2304)
0x1B40 SharePoint Foundation
Runtime tkau
Unexpected System.Web.HttpException: Request timed out.
4deed69c-2f53-a086-14bb-cbf40b020025
12.18.2014 10:28:07.64 w3wp.exe (0x2304)
0x1B40 SharePoint Foundation
General ajlz0
High Getting Error Message for Exception System.Web.HttpException (0x80004005): Request timed out.
4deed69c-2f53-a086-14bb-cbf40b020025
12.18.2014 10:28:07.69 w3wp.exe (0x2304)
0x1B40 SharePoint Foundation
Micro Trace uls4
High Micro Trace Tags: 0 b4ly,301 aj2jl,3 aj2jk,0 aj2jl,2423 84y4,35 84y5,4 84y4,11 84y5,181 7t6o,2714 ajy0d,112321 fa45,10 fa46,3 tzku,23 tzkv,0 aek90,0 b4ly,6 8dyx,91 b4ly,38 tkau,13 ajlz0
4deed69c-2f53-a086-14bb-cbf40b020025
The working content database creation from powershell looks like this
12.18.2014 09:45:37.52 PowerShell.exe (0x2058)
0x1E28 SharePoint Foundation
Upgrade aj2jl
High 12/18/2014 09:45:37.52 powershell (0x2058) 0x1E28 SharePoint Foundation Upgrade ServerSequence aj2jl DEBUG Search ServerSequence returns TargetBuildVersion '15.0.4675.1000' 43dae8a1-02e3-43f5-8a06-0417221e6385
43dae8a1-02e3-43f5-8a06-0417221e6385
12.18.2014 09:45:37.52 PowerShell.exe (0x2058)
0x1E28 SharePoint Foundation
Upgrade aj2jk
High 12/18/2014 09:45:37.52 powershell (0x2058) 0x1E28 SharePoint Foundation Upgrade ServerSequence aj2jk DEBUG Setting Search ServerSequence version (guid '53d65723-a256-48d7-a477-1d3466089eef') to BuildVersion '15.0.4675.1000'
43dae8a1-02e3-43f5-8a06-0417221e6385 43dae8a1-02e3-43f5-8a06-0417221e6385
12.18.2014 09:45:37.52 PowerShell.exe (0x2058)
0x1E28 SharePoint Foundation
Upgrade aj2jl
High 12/18/2014 09:45:37.52 powershell (0x2058) 0x1E28 SharePoint Foundation Upgrade ServerSequence aj2jl DEBUG Search ServerSequence returns TargetBuildVersion '15.0.4675.1000' 43dae8a1-02e3-43f5-8a06-0417221e6385
43dae8a1-02e3-43f5-8a06-0417221e6385
12.18.2014 09:45:39.98 PowerShell.exe (0x2058)
0x1E28 SharePoint Foundation
Topology 84y4
High Granting VIEW SERVER STATE permission for S-1-5-21-3747686279-3738247048-1854932723-1131.
43dae8a1-02e3-43f5-8a06-0417221e6385
12.18.2014 09:45:40.02 PowerShell.exe (0x2058)
0x1E28 SharePoint Foundation
Topology 84y5
High VIEW SERVER STATE permission updated successfully.
43dae8a1-02e3-43f5-8a06-0417221e6385
12.18.2014 09:45:40.02 PowerShell.exe (0x2058)
0x1E28 SharePoint Foundation
Topology 84y4
High Granting CONTROL SERVER permission for S-1-5-21-3747686279-3738247048-1854932723-1131.
43dae8a1-02e3-43f5-8a06-0417221e6385
12.18.2014 09:45:40.03 PowerShell.exe (0x2058)
0x1E28 SharePoint Foundation
Topology 84y5
High CONTROL SERVER permission updated successfully.
43dae8a1-02e3-43f5-8a06-0417221e6385
12.18.2014 09:45:40.23 PowerShell.exe (0x2058)
0x1E28 SharePoint Foundation
Database 7t6o
High The WSS_Content_powershelltest database does not exist. It will now be created.
43dae8a1-02e3-43f5-8a06-0417221e6385
12.18.2014 09:45:43.03 PowerShell.exe (0x2058)
0x1E28 SharePoint Foundation
Upgrade ajy0d
High 12/18/2014 09:45:43.03 powershell (0x2058) 0x1E28 SharePoint Foundation Upgrade SPUtility ajy0d DEBUG File C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\Template\sql\store.sql, Time
out = 0 sec 43dae8a1-02e3-43f5-8a06-0417221e6385
43dae8a1-02e3-43f5-8a06-0417221e6385
12.18.2014 09:48:52.70 PowerShell.exe (0x2058)
0x1E28 SharePoint Foundation
Database 944r
High Adding S-1-5-21-3747686279-3738247048-1854932723-1131 to the role, db_owner, in the database, WSS_Content_powershelltest.
43dae8a1-02e3-43f5-8a06-0417221e6385
12.18.2014 09:48:52.81 PowerShell.exe (0x2058)
0x1E28 SharePoint Foundation
Monitoring b4ly
High Leaving Monitored Scope (Database.Provision (WSS_Content_powershelltest on SQLSERVER\DATABASE)). Execution Time=192653,1989
43dae8a1-02e3-43f5-8a06-0417221e6385
12.18.2014 09:48:57.90 PowerShell.exe (0x2058)
0x1E28 SharePoint Foundation
Upgrade al2ph
High 12/18/2014 09:48:57.90 powershell (0x2058) 0x1E28 SharePoint Foundation Upgrade SPContentDatabaseSequence al2ph DEBUG Executing SQL DDL Script. 43dae8a1-02e3-43f5-8a06-0417221e6385
43dae8a1-02e3-43f5-8a06-0417221e6385
12.18.2014 09:48:58.03 PowerShell.exe (0x2058)
0x1E28 SharePoint Foundation
Upgrade al2ph
High 12/18/2014 09:48:58.03 powershell (0x2058) 0x1E28 SharePoint Foundation Upgrade SPContentDatabaseSequence al2ph DEBUG Executing SQL DDL Script. 43dae8a1-02e3-43f5-8a06-0417221e6385
43dae8a1-02e3-43f5-8a06-0417221e6385
12.18.2014 09:48:58.04 PowerShell.exe (0x2058)
0x1E28 SharePoint Foundation
Upgrade al2ph
High 12/18/2014 09:48:58.04 powershell (0x2058) 0x1E28 SharePoint Foundation Upgrade SPContentDatabaseSequence2 al2ph DEBUG Executing SQL DDL Script. 43dae8a1-02e3-43f5-8a06-0417221e6385
43dae8a1-02e3-43f5-8a06-0417221e6385
12.18.2014 09:48:58.15 PowerShell.exe (0x2058)
0x1E28 SharePoint Foundation
Upgrade ajyw6
High 12/18/2014 09:48:58.15 powershell (0x2058) 0x1E28 SharePoint Foundation Upgrade SPHierarchyManager ajyw6 DEBUG [SPTree Value=SPContentDatabase Name=WSS_Content_powershelltest] added to dependency cache by lookup
43dae8a1-02e3-43f5-8a06-0417221e6385 43dae8a1-02e3-43f5-8a06-0417221e6385
12.18.2014 09:48:58.23 PowerShell.exe (0x2058)
0x1E28 SharePoint Foundation
Database 944r
High Adding S-1-5-21-3747686279-3738247048-1854932723-1131 to the role, SPDataAccess, in the database, WSS_Content_powershelltest.
43dae8a1-02e3-43f5-8a06-0417221e6385
12.18.2014 09:48:58.59 PowerShell.exe (0x2058)
0x1E28 SharePoint Foundation
Database bx4r
High All documents with forward links in content database [SPContentDatabase Name=WSS_Content_powershelltest] is being dirtied.
43dae8a1-02e3-43f5-8a06-0417221e6385
12.18.2014 09:48:58.97 PowerShell.exe (0x2058)
0x1E28 SharePoint Foundation
Database 944r
High Adding S-1-5-21-3747686279-3738247048-1854932723-1131 to the role, SPDataAccess, in the database, WSS_Content_powershelltest.
43dae8a1-02e3-43f5-8a06-0417221e6385
12.18.2014 09:48:58.98 PowerShell.exe (0x2058)
0x1E28 SharePoint Foundation
Monitoring b4ly
High Leaving Monitored Scope (Creating Content Database (WSS_Content_powershelltest on SQLSERVER\DATABASE)). Execution Time=198893,1578
43dae8a1-02e3-43f5-8a06-0417221e6385
The fact that i am able to create a content database through powershell sorts out permissions problems. I am certain of that because the w3wp.exe and the powershell.exe used for both creations were run under the same user.
The timeout always happens aroud 120 seconds after i started the creation. The creation via powershell takes about 3,5 minutes.
Here for the folks that ask me, why i haven't asked google or bing or some other search engine.
I tried the solutions suggested here
http://www.sharepointpals.com/post/Error-while-Creating-Web-Application-through-Central-Administration , here
http://anthonyspiteri.net/sharepoint-2010-web-ui-timeout-creating-web-application-quick-fix/ and here
http://blogs.ibs.com/Duane.Odum/Lists/Posts/Post.aspx?ID=33
which i thought pointed me to the right solution.
But those post unfortunatly didnt worked out.
I also tried to alter the web.config files (i know that isn't recommended or supported, but it didn't change anything so those are back to normal as well)
So here are my question:
Can you guys help me solve this issue?
Are there any other places where timeouts can be managed or defined?
P.S.: I am new to using this forum. so pls don't crucify me for doing a mistake.
P.S.S: My english is very poor also :D
With best regards
SimonBe careful with settings like these because there may be a much deeper issue at hand. I have had an issue with a customer that manifests itself as a timeout on a site collection. It was very hard to track since it didn't happen frequently. We engaged Microsoft
Support to find out the root cause but all they could point at is a general network issue that pertains to authentication. After digging deeper, we found out that the network issue was caused by a saturated network connectivity to the domain controller that
impacts a site collection when the database is making an authentication call. Keep this solution as more of a quick fix but be sure to conduct a deeper investigation of the real root cause
Edwin Sarmiento SQL Server MVP | Microsoft Certified Master
Blog |
Twitter | LinkedIn
SQL Server High Availability and Disaster Recover Deep Dive Course -
File.upload on Air SDK for iOS devices failed to send http request to server.
I am trying to use ActionScript's File.upload to upload a file on Air SDK for iOS8 environment, but the File.upload does not work properly. No handler about the file upload is executed after File.upload is invoked, and no exception is caught. When I check the network traffic of the server side, I found that no http request even hit the server after File.upload is executed. The code snippet here is very simple.
private var file:File;
private var dir:File;
//This method is executed to create a file and upload it when the Upload Button is pressed.
protected function OnUploadButtonPressed(event:MouseEvent):void{
var str:String = 'This is test';
var imageBytes:ByteArray = new ByteArray();
for ( var i:int = 0; i < str.length; i++ ) {
imageBytes.writeByte( str.charCodeAt(i) );
try{
dir = File.applicationStorageDirectory
var now:Date = new Date();
var filename:String = "test" + now.seconds + now.milliseconds + ".txt";
file = dir.resolvePath( filename );
var stream:FileStream = new FileStream();
stream.open( file, FileMode.WRITE );
stream.writeBytes( imageBytes );
stream.close();
file.addEventListener( Event.COMPLETE, uploadComplete );
file.addEventListener( IOErrorEvent.IO_ERROR, ioError );
file.addEventListener( SecurityErrorEvent.SECURITY_ERROR, securityError );
file.addEventListener(ErrorEvent.ERROR, someError);
file.addEventListener(ProgressEvent.PROGRESS, onProgress);
file.upload( new URLRequest("http://10.60.99.31/MyPath/fileUploadTest.do"));//This line does not work. No handler is executed. No http request hit the server side.
} catch( e:Error ) {
trace( e );
//Complete Handler
private function uploadComplete( event:Event ):void
trace( "Upload successful." );
//IOError handler
private function ioError( error:IOErrorEvent ):void
trace( "Upload failed: " + error.text );
//SecurityError handler
private function securityError(error:SecurityErrorEvent):void{
trace( "Security error:" + error.text );
//Other handler
private function someError(error:ErrorEvent):void{
trace("some error" + error.text);
//Progress handler
private function onProgress(event:ProgressEvent):void{
trace("progressHandler");
When executed on Air Simulator, it works fine as expected, and the file is successfully uploaded to the server. But When executed on iOS devices(in my case, iPad), as I explain early, no handler about the file upload is executed, and no the http request even hit the server. So I think the problem may be in the client side. It seems that the Air SDK for iOS just failed to send the http request for some reason.
To make my problem more clear, I list my environment below:
Development Environment: Windows7 (64bit) / Mac os 10.9.4 (Tested on OS platforms.)
IDE: Flash Builder 4.7
Air SDK: 3.8 / 16.0.0 (After I updated to the lastest Air SDK 16.0.0 , the problem still exists.)
Application Server: Tomcat7 + Spring
Target OS: iOS 8
I have been struggling for this for days. So I really appreciate it if anyone has any idea about this.
Thanks in advance.Hi bluewindice ,
As you have quoted ( ActionScript's File.upload does not work on Air SDK for iOS devices ) , this issue has been replicated at our end, and our team will be working on it.
Thanks,
Tushar -
I have a Java program that creates a url from a String, then uses the openConnection method of URLConnection to send the request to a web server. The exact same Url string works fine from my browser, but the Java program throws a java.io.FileNotFoundException. Other url's work OK.
Any pointers as to what could cause this are appreciated.See if anything in http://forum.java.sun.com/thread.jsp?forum=4&thread=135019 helps you.
-
Apache HA: Probe sends HTTP request to HTTPS port
Hello,
i have a Sun 3.2 Cluster and the Apache HA module configured as described in the documentation. Works fine, except of the probe sending a HTTP request to the HTTPS port - this causes every minute an error log entry which is annoying. The log file runs full of these "HTTP spoken on HTTPS port" messages.
I have already tried to set the Monitor_Uri_List parameter to http://servername:80/ but this does not help. Has anyone a solution to this problem? Can I just re-create the apache HA module and leave out the '44/tcp' in the Port_list parameter?
Thanks for help,
marc.It doesnt matter where they are, you just need to set up the two virtual hosts as per my example. The fact that the domains are the same with/without ssl doesnt change my example above.
So, you need to set up one ssl host for the domain sharpie.pen.com, and a non-ssl host for the domain sharpie.pen.com. If you want bic.pen.com to have the same behavior you will need another pair for that.
Apache must have a virtual host to respond to a port/domain combination.
The reason I suggested a re-write rule of the form I did was to ensure that if someone went to:
http://sharpie.pen.com/webmail/login.php (for instance)
they would be redirected to
httpS://sharpie.pen.com/webmail/login.php
rather than the root of the domain.
Does this help?
James -
Guys,
i need to implement a program that will send request to the server and recieve the http response from the server.
Some of information will attached in the http response from the server.
My application must able to catch out this info in the http response header.
I had use the httpClient jar to send the request and i able to recieve http response 200 or 400 only from the server.
Can any one of you give me some idea on how to retrieve the attached info in the response header?
Thanks in advance.See http://jakarta.apache.org/commons/httpclient/apidocs/index.html
package org.apache.commons.httpclient.methods methods: GetMethod PostMethod : getResponseHeaderGroup, getResponseHeaders, getResponseHeaders... -
Problems sending HTTP request to PI
In order to receiver a HTTP request from HTTP server onto PI, what things needs to be defined in PI?
there is an HTTP application which can connect to other PI server in my environment without any issues, but when I point it to intended PI server, it is throwing exceptions. Where am I doing wrong? do I need to create a some RFC destination for this?Hello!
Since you are talking about "PI" I believe you're using 7.1X.
From this, check this link: http://help.sap.com/saphelp_nwpi71/helpdata/EN/44/bcd15381f456a1e10000000a1553f6/frameset.htm
Also, when you go to the INTEGRATION_DIRECTORY_HMI, the result
should be 500 "Internal Server Error" and not the 200 Ok that we're used to
Hope it helps!
Regards,
Caio Cagnani -
Sending HTTP request to an unknown URL
How to set timeout and continue the flow in plsql when a http request is sent to an unknown ip(fake ip). I am sending request using utl_http package. i tried setting timeout using utl_http.set_transfer_timeout but no luck.I would like to know some suggestions on this. im really bugged on this for the past 2 weeks. I posted this twice. But there was no satisfactory answers.
please help.Here's what i tried using exception handlers. but it does not work
IF (cou > 0) THEN
DECLARE
l_url VARCHAR2(256) ;
l_http_request UTL_HTTP.req;
l_http_response UTL_HTTP.resp;
l_url := hostname;
UTL_HTTP.set_transfer_timeout(5);
l_http_request := UTL_HTTP.begin_request(l_url);
l_http_response := UTL_HTTP.get_response(l_http_request);
UTL_HTTP.end_response(l_http_response);
CASE WHEN l_http_response.status_code = 200 THEN
proc('Success')
WHEN l_http_response.status_code in(401,403,500,503) THEN
proc('Error')
END CASE;
EXCEPTION WHEN OTHERS THEN
Result := 'continue';
END;
END IF; -
Sending http request form forte to webserver
Hai ,
Do any one has an idea of sending the HTTP request from forte client to the
webserver where my servlet is running.
Thanks in Advance
maheshHere's what i tried using exception handlers. but it does not work
IF (cou > 0) THEN
DECLARE
l_url VARCHAR2(256) ;
l_http_request UTL_HTTP.req;
l_http_response UTL_HTTP.resp;
l_url := hostname;
UTL_HTTP.set_transfer_timeout(5);
l_http_request := UTL_HTTP.begin_request(l_url);
l_http_response := UTL_HTTP.get_response(l_http_request);
UTL_HTTP.end_response(l_http_response);
CASE WHEN l_http_response.status_code = 200 THEN
proc('Success')
WHEN l_http_response.status_code in(401,403,500,503) THEN
proc('Error')
END CASE;
EXCEPTION WHEN OTHERS THEN
Result := 'continue';
END;
END IF; -
Send http request..
hi to all !
someone can tell me the one way for send a request http like for browser "http://127.0.0.1:8080/cgi-bin/wap_push.cgi?"username=nico&password=nico" but with java.net library ?
thanks in advance,(and sorry for my english..;-))
nicohttp://java.sun.com/docs/books/tutorial/networking/urls/index.html
-
Creating listener for incoming http requests
Hi,
I am trying to create a server for incoming http requests.
I am using Connector.open("socket://:5555") call to bind to the server socket.
I have give permission for Connector.socket, as well as Connector.http to this application.
The server is able to accept connections when the client connects using socket://localhost:5555, but does not accept any incoming connection when the client connects using http://localhost:5555.
How can I create a service on my mobile which will accept http requests.
Thanks,
DebashisAllistair,
One thing that might help you is an understanding of the Oracle database JVM architecture. Here's a DOC which you might find interesting:
http://otn.oracle.com/products/oracle8i/pdf/Oow_BestPractices.pdf
Hope this helps,
-Dan
http://www.compuware.com/products/devpartner/db/oracle_debug.htm
Debug PL/SQL and Java in the Oracle Database
Maybe you are looking for
-
How do I hide the text message preview in IOS5.0.1.
What's up All?, Since upgrading my 4s to 5.0.1 I notice there's no way to hide the text preview on the lock screen. For privacy reasons I don't want this to happen, it's ok if a name comes up but I don't want to see the message. I've been searching
-
My iPhone 5 needs to be restored, but I'm not backed up to iCloud
I plugged in my phone to my computer today to sync with iTunes, and I received a message claiming that I need to restore my phone. I'm not backed up to iCloud. In fact, my iCloud has never backed up on this phone, and I've never been able to get it t
-
"Show in Finder" is never enabled in File Menu
For some reason I can never get the "Show in Finder" selection in the File menu to become enabled. It is always "grayed out". I have a photo selected, and then choose the File menu and go to "Show in Finder" but the option is grayed out. Am I doing s
-
Digital Signature on TDS certificate - Vendors
Dear All, Their is possiblity to insert digital signature on TDS certificate given to employees(form 16), but is their any chance of inseting the digital signature on TDS certificate given to Vendors. Thanks & Regards Krishna Chaitanya
-
Hi, So my search function does not find "Contacts", in order to search for contacts I need to go into the "Contacts" application/menu. Previously, I would be able to search for contacts using the Global search. Not sure if this is supposed to be a fe