草庐IT

connect_failed

全部标签

javax.naming.NamingException : JBAS011843: Failed instantiate InitialContextFactory org. jnp.interfaces.NamingContextFactory 来自类加载器

大家好,我在Jboss-as-7.1.1中遇到了一些问题。我正确部署但是当我从客户端发送请求时出现错误。我正在使用Jboss-7.1.1,部署文件夹是standalone/deployment(axis2.war,response.war,SpSpecific.ear,responsecomponet.ear)部署日志:-13:00:51,457INFO[org.jboss.modules]JBossModulesversion1.1.1.GA13:00:52,261INFO[org.jboss.msc]JBossMSCversion1.0.2.GA13:00:52,381INFO[o

java - 将 BrowserMob 代理传递给 Sauce Labs - "The proxy server is refusing connections"错误

我一直在尝试将BrowserMob代理传递给SauceLabs,但没有成功。这是我尝试过的:启动代理服务器shbrowsermob-proxy-port9090启动代理curl-XPOSThttp://localhost:9090/proxy{"port":9091}启动sauceconnect,并传递代理服务器信息java-jarSauce-Connect.jarmynamexxxxxx-plocalhost:9091运行Java客户端ProxyServerproxyServer=newProxyServer(9091);proxyServer.start();Proxyproxy=

javax.mail.MessagingException : Could not connect to SMTP host : <host name> port : 25 response: 554

我正在尝试使用javamailapi发送邮件。我的smtp服务器是ibm服务器。我正面临这个异常(exception)javax.mail.MessagingException:CouldnotconnecttoSMTPhost:port:25response:554请帮助我。提前致谢。 最佳答案 您收到错误代码554:AccessDeniedRelay。这可能是因为您的SMTP服务器无法识别您的请愿书是合法的,并像垃圾邮件一样阻止它。也许您的发件人帐户与服务器预期的域不匹配,或者您需要向您的SMTP连接添加一些额外的验证参数(如果

java - Maven 3 : Failed to execute goal org. apache.maven.plugins :maven-archetype-plugin:2. 2:生成

我正在尝试使用测试ma​​venmvnarchetype:generate-DgroupId=org.sonatype.mavenbook-DartifactId=quickstart-Dversion=1.0-SNAPSHOT-DpackageName=org.sonatype.mavenbook-DarchetypeGroupId=org.apache.maven.archetypes-DarchetypeArtifactId=maven-archetype-quickstart-DarchetypeVersion=1.0-DinteractiveMode=false几分钟后,系统

java - Connection.isValid(time) 实际上做了什么来检查连接是否有效?

使用OJDBC进程是否使用isValid方法检查连接是否仍然存在?我试图弄清楚它可能对数据库产生什么影响以及这个过程有多繁重。例如它是请求一个列,还是只用几个字节的数据对数据库执行ping操作。 最佳答案 每个供应商以不同的方式实现jdbc方法。例如Oracle的实现是:publicbooleanisValid(intvar1)throwsSQLException{returnthis.pingDatabase(var1)==0;}pingDatabase简单地执行selectxfromdual:intdoPingDatabase(

java - '严重 : SAAJ0009: Message send failed error' while sending a message

Feb8,201111:56:49AMcom.sun.xml.internal.messaging.saaj.client.p2p.HttpSOAPConnectionpostSEVERE:SAAJ0009:Messagesendfailedcom.sun.xml.internal.messaging.saaj.SOAPExceptionImpl:java.security.PrivilegedActionException:com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl:Messagesendfailedatcom.sun.

java - 301 重定向 : Why connection close?

在Java中进行301重定向时,我学会了使用Connection:closeresponse.setStatus(301);response.setHeader("Location","http://www.example.com/");response.setHeader("Connection","close");我们为什么要这样做?为什么不省略最后一行?我至少在三个例子中看到过这一点,包括这个:http://www.pardontheinformation.com/2010/09/java-servlet-jsp-301-and-302-redirect.html我从未见过省略最

java.lang.IllegalStateException : Failed to load property source from location 'classpath:/application.yml' 错误

SpringCloud项目出现以下错误。在这个项目中,除了从GIT读取.properties文件外,我没有做任何特别的事情。请指导此处还有哪些需要更正的地方?java.lang.IllegalStateException:Failedtoloadpropertysourcefromlocation'classpath:/application.yml'atorg.springframework.boot.context.config.ConfigFileApplicationListener$Loader.load(ConfigFileApplicationListener.java:

java - 何时使用 hibernate.connection.provider_class

什么时候应该使用hibernate.connection.provider_class?我有点混淆它和“hibernate.connection.diver_class”。provider_class可能对连接池有用还有其他我们可以使用provider_class的目的吗? 最佳答案 连接提供程序的另一个用途是随着时间的推移维护session,对于mysql+hibernate的组合尤其如此。如果您没有正确配置的连接提供程序来处理来自mysql的超时,那么如果您有一段时间不活动,您可能迟早会断开与数据库的连接。

java - Apache HttpClient : How to auto close connections by server's keep-alive time?

ApacheHttpClient4.3b2,HttpCore4.3。我使用PoolingHttpClientConnectionManager同时管理5个连接:PoolingHttpClientConnectionManagerconnectionManager;HttpClienthttpclient;connectionManager=newPoolingHttpClientConnectionManager();connectionManager.setDefaultMaxPerRoute(5);httpclient=HttpClientBuilder.create().setC