我试图从eclipse在GlassFish 4中测试我的Web应用程序.当我使用文件(startserv.bat)启动GlassFish 4时,它工作正常,但是当我尝试从Eclipse运行它时,它开始加载,但是然后启动过程被卡在69%,在一条消息上Launching Delegate...

在这种情况下几分钟后,它给我一个错误信息:

经过几次重试后,我收到了这条消息:

即使端口8080(GlassFish的端口)和4848(GlassFIsh的管理端口)上没有运行任何东西
它之前对我来说很好,但现在由于某种原因,它只是没有,我没有做任何事情的设置或任何东西.我该如何解决这个问题?
这是我的启动控制台日志:http://pastebin.com/XL0Lh5zw(使用pastebin避免使帖子变大)
我很难让Glassfish服务器实际启动并继续运行Eclipse(luna)安装.
我让Glassfish在Netbeans中运行良好.
我在Eclipse中创建了服务器,我可以启动它,但进度条大约达到69%然后停止并最终给我一个错误:
无法按时启动服务器.java.util.concurrent.TimeoutException
奇怪的是,当我等待错误出现时,我可以去localhost:8080并且服务器正在运行,我也可以去管理控制台.
我也增加了超时(开始是240秒),但同样的事情发生了.
我在Eclipse中删除并重新创建了服务器.
我已经从其他帖子中建议删除了domain1/osgi-cache中的缓存文件
我已经设置了第二个域(domain2)并尝试连接到该域但得到相同的错误.
任何意见,将不胜感激.
如果这有所不同,我也在OSX 10.9.5上.
编辑 - 添加日志输出
2015-03-26T17:00:58.880+1000|Info: Running GlassFish Version: GlassFish Server Open Source Edition 4.1 (build 13)
2015-03-26T17:00:58.883+1000|Info: Server log file is using Formatter class: com.sun.enterprise.server.logging.ODLLogFormatter
2015-03-26T17:00:59.034+1000|Info: Registered org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for persistence-type = replicated in BackingStoreFactoryRegistry
2015-03-26T17:00:59.145+1000|Info: Authorization Service has successfully initialized.
2015-03-26T17:00:59.200+1000|Info: Realm [admin-realm] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.
2015-03-26T17:00:59.202+1000|Info: Realm [file] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.
2015-03-26T17:00:59.209+1000|Info: Realm [certificate] of classtype [com.sun.enterprise.security.auth.realm.certificate.CertificateRealm] successfully created.
2015-03-26T17:00:59.541+1000|Info: Grizzly Framework 2.3.15 started …Run Code Online (Sandbox Code Playgroud) 我们最近将我们的Web应用程序升级到MongoDB C#Driver 2.0并部署到生产中.低于一定负载,应用程序运行正常.一旦生产服务器上的负载超过某个限制,应用程序的CPU立即降至0,大约30秒后,将多次记录此异常:
System.TimeoutException message: A timeout occured after 30000ms selecting a server using CompositeServerSelector{ Selectors = ReadPreferenceServerSelector{ ReadPreference = { Mode = Primary, TagSets = System.Collections.Generic.List`1[MongoDB.Driver.TagSet] } }, LatencyLimitingServerSelector{ AllowedLatencyRange = 00:00:00.0150000 } }. Client view of cluster state is { ClusterId : "1", Type : "Standalone", State : "Disconnected", Servers : [{ ServerId: "{ ClusterId : 1, EndPoint : "Unspecified/10.4.0.113:27017" }", EndPoint: "Unspecified/10.4.0.113:27017", State: "Disconnected", Type: "Unknown" }] }.
stack trace:
at MongoDB.Driver.Core.Clusters.Cluster.ThrowTimeoutException(IServerSelector selector, ClusterDescription description)
at MongoDB.Driver.Core.Clusters.Cluster.<WaitForDescriptionChangedAsync>d__18.MoveNext() …Run Code Online (Sandbox Code Playgroud) 我正在使用Service Bus 2.1对于Windows Server,我有一种方法来异步接收消息.
我方法的主体是:
var waitTimeout = TimeSpan.FromSeconds(10);
// Declare an action acting as a callback whenever a message arrives on a queue.
AsyncCallback completeReceive = null;
// Declare an action acting as a callback whenever a non-transient exception occurs while receiving or processing messages.
Action<Exception> recoverReceive = null;
// Declare an action responsible for the core operations in the message receive loop.
Action receiveMessage = () =>
{
// Use a retry policy to execute the Receive action …Run Code Online (Sandbox Code Playgroud) 我是C#的新手,我发现异常有点令人困惑......我有一个带有以下代码的Web应用程序:
try
{
//do something
}
catch (TimeoutException t)
{
Console.WriteLine(t);
}
catch (TaskCanceledException tc)
{
Console.WriteLine(tc);
}
catch (Exception e)
{
Console.WriteLine(e);
}
Run Code Online (Sandbox Code Playgroud)
当我调试代码时,它抛出e Exception,最普遍的代码,当我将鼠标悬停在异常信息上时,结果证明它是TaskCanceledException.为什么没被TaskCanceledException抓住?如果异常是它TimeoutException会抓住它TimeoutException还是会抓住它Exception?这是为什么?
所以在添加try/catch块之前,当进程运行不到5分钟时,我的事件循环正常关闭,但是在添加try/catch块后,当进程超过5分钟时我开始收到此错误
async def run_check(shell_command):
p = await asyncio.create_subprocess_shell(shell_command,
stdin=PIPE, stdout=PIPE, stderr=STDOUT)
fut = p.communicate()
try:
pcap_run = await asyncio.wait_for(fut, timeout=5)
except asyncio.TimeoutError:
pass
def get_coros():
for pcap_loc in print_dir_cointent():
for pcap_check in get_pcap_executables():
tmp_coro = (run_check('{args}'
.format(e=sys.executable, args=args)))
if tmp_coro != False:
coros.append(tmp_coro)
return coros
async def main(self):
p_coros = get_coros()
for f in asyncio.as_completed(p_coros):
res = await f
loop = asyncio.get_event_loop()
loop.run_until_complete(get_coros())
loop.close()
Run Code Online (Sandbox Code Playgroud)
追溯:
Exception ignored in: <bound method BaseSubprocessTransport.__del__ of
<_UnixSubprocessTransport closed pid=171106 running stdin=
<_UnixWritePipeTransport closing fd=8 …Run Code Online (Sandbox Code Playgroud) runtime-error timeoutexception python-3.x async-await python-asyncio
超时问题:
超时已过期.操作完成之前经过的超时时间或服务器没有响应.\ r \n语句已终止.
我有17亿条记录要转储到我的应用程序数据库中.这1200万条记录是2条数据库记录之间比较操作的结果.
我比较了2个数据库记录,然后在数据表中填充不匹配记录(基于某些条件),一旦该数据表达到1000或500等限制,我将此数据表发送到SQL批量复制以进行批量导入,然后清空数据表.
我在事务中执行整个操作,以便我插入X记录,在比较过程中出现任何错误,所以我将回滚那些X记录.
但正因为如此,我得到一个超时问题然后批量复制.
我检查了各种不同的batchsize like 5000,1000,500,300等等.我在所有批量大小中都出现了超时问题.
一旦我将批量复制超时设置为0,然后我将此错误发送到下面:
我的数据库的事务日志已满.
有1000条记录,它达到270万,然后抛出超时问题,
有500条记录,它达到了大约210万条记录然后抛出错误.
300,200,100也是抛出超时错误.
我还在连接字符串中将连接超时设置为30分钟.
代码:
public class SaveRepo : IDisposable
{
DataTable dataTable;
SqlConnection connection;
string connectionString;
SqlTransaction transaction;
SqlBulkCopy bulkCopy;
int testId,
public SaveRepo (int testId)//testId=10364
{
this.connectionString = connectionString;
dataTable = new DataTable();
connection = new SqlConnection(connectionString);
connection.Open();
transaction = connection.BeginTransaction();
bulkCopy = new SqlBulkCopy(connection, SqlBulkCopyOptions.Default, transaction);
bulkCopy.BulkCopyTimeout = 60;
bulkCopy.EnableStreaming = true;
bulkCopy.DestinationTableName = "dbo.Sales";
bulkCopy.BatchSize = 100;
bulkCopy.SqlRowsCopied +=
new SqlRowsCopiedEventHandler(OnSqlRowsCopied); …Run Code Online (Sandbox Code Playgroud) 由于我的 Kafka 制作人的各种原因,我经常收到超时异常。我目前正在使用生产者配置的所有默认值。
我见过以下超时异常:
org.apache.kafka.common.errors.TimeoutException:60000 毫秒后无法更新元数据。
org.apache.kafka.common.errors.TimeoutException:主题 1-0 的 1 条记录到期:自上次追加以来已经过去了 30001 毫秒
我有以下问题:
这些超时异常的一般原因是什么?
处理超时异常的一般准则是什么?
超时异常是可重试的异常吗?重试它们是否安全?
我正在使用 Kafka v2.1.0 和 Java 11。
提前致谢。
我有以下代码:
WebDriverWait(self.driver, 20).until(expected_conditions.element_to_be_clickable(click))
Run Code Online (Sandbox Code Playgroud)
现在这有时会失败,我知道为什么会失败。但错误给了我
TimeoutException: Message:
Run Code Online (Sandbox Code Playgroud)
这是没用的。我可以设置这个消息吗?
Traceback (most recent call last):
File "Inventorytest.py", line 88, in <module>
j.go_to_application()
File "Inventorytest.py", line 65, in go_to_application
EC.element_to_be_clickable((By.ID, 'FavoriteApp_ITEM'))
File "/home/naroladev/Mercury_Back-End/mercuryenv/lib/python3.6/site-packages/selenium/webdriver/support/wait.py", line 80, in until
raise TimeoutException(message, screen, stacktrace)
selenium.common.exceptions.TimeoutException: Message:
Run Code Online (Sandbox Code Playgroud)
我在 EC2 服务器实例上遇到了上述异常。我的脚本在 Ubuntu 和 Mac 操作系统以及本地系统上任何版本的 firefox 和 geckodriver 上都可以正常工作。但是 EC2 ubuntu 18.04.01 版本出现上述错误,在此我也尝试升级和降级 firefox 和 geckodriver 版本,但仍然无法正常工作。谁能帮我提供建议和解决方案。
python selenium timeoutexception webdriverwait expected-condition
timeoutexception ×10
java ×3
c# ×2
eclipse ×2
glassfish ×2
python ×2
selenium ×2
ado.net ×1
apache-kafka ×1
async-await ×1
python-3.x ×1
servicebus ×1
sql-server ×1
sqlbulkcopy ×1