communicationexception

JavaEE6: How to safeguard web application when the database shut down

≡放荡痞女 提交于 2020-01-21 14:50:45
问题 First of all, my framework is Java EE 6 with JSF, managed bean, EJB and JPA. I write a simple program to query information from the database. So when I click a button, it trigger an event to a managed bean, where an event listener method will access EJB method. The EJB method will do a simple select query to an Entity. If the database is shutdown before or during the time I select , I get an exception Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org

WCF CommunicationException with no Exception message details

こ雲淡風輕ζ 提交于 2019-12-10 15:51:37
问题 One of the things I never understood about WCF is why no Exception message details are propagated back to the calling client when the server encounters an unhandled exception. For example, if I have the following server code [ServiceBehavior(IncludeExceptionDetailInFaults = true)] public class Server : IServer { public DTO GetDTO() { DTO dto = new DTO(); dto.dto = dto; return dto; } } public class DTO { public DTO dto; } [ServiceContract] public interface IServer { [OperationContract] DTO

WCF, BasicHttpBinding: Stop new connections but allow existing connections to continue

▼魔方 西西 提交于 2019-12-03 12:18:05
问题 .NET 3.5, VS2008, WCF service using BasicHttpBinding I have a WCF service hosted in a Windows service. When the Windows service shuts down, due to upgrades, scheduled maintenance, etc, I need to gracefully shut down my WCF service. The WCF service has methods that can take up to several seconds to complete, and typical volume is 2-5 method calls per second. I need to shut down the WCF service in a way that allows any previously call methods to complete, while denying any new calls. In this

System.Net.WebException: The request was aborted: the request was cancelled

一笑奈何 提交于 2019-12-03 09:02:42
问题 I have a WCF service that has been giving me this error under load conditions (and I can't seem to recreate the error otherwise). We've been trying to find a way around it for about a week now with no such luck.. The error I see has two parts to it, System.ServiceModel.CommunicationException: An error: (The request was aborted: the request was cancelled.) occurred while transmitting data over the http channel. and: System.Net.WebException: The request was aborted: the request was cancelled. I

JavaEE6: How to safeguard web application when the database shut down

风流意气都作罢 提交于 2019-12-02 03:12:24
First of all, my framework is Java EE 6 with JSF, managed bean, EJB and JPA. I write a simple program to query information from the database. So when I click a button, it trigger an event to a managed bean, where an event listener method will access EJB method. The EJB method will do a simple select query to an Entity. If the database is shutdown before or during the time I select , I get an exception Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DatabaseException Internal Exception: com.mysql.jdbc.exceptions.jdbc4

CommunicationException with 'not recognized sequence' message in WCF

让人想犯罪 __ 提交于 2019-11-30 19:09:01
I get a CommunicationException while using WCF service. The message is: The remote endpoint no longer recognizes this sequence. This is most likely due to an abort on the remote endpoint. The value of wsrm:Identifier is not a known Sequence identifier. The reliable session was faulted. The exception is thrown in a moment after a contract method was called. Before calling contract method the channel state is Opened. I restore my service client after catching this exception and for some time it works fine. But then this error occures again. It seems like some timeout is exceeded, but I can't

CommunicationException with 'not recognized sequence' message in WCF

守給你的承諾、 提交于 2019-11-30 03:04:06
问题 I get a CommunicationException while using WCF service. The message is: The remote endpoint no longer recognizes this sequence. This is most likely due to an abort on the remote endpoint. The value of wsrm:Identifier is not a known Sequence identifier. The reliable session was faulted. The exception is thrown in a moment after a contract method was called. Before calling contract method the channel state is Opened. I restore my service client after catching this exception and for some time it

Communications link failure due to: java.io.EOFException

旧时模样 提交于 2019-11-28 11:43:54
My webapp is running on Tomcat 5.5, I declared the datasource in web.xml: <resource-ref> <res-ref-name>jdbc/OrdiniWebDS</res-ref-name> <res-type>javax.sql.DataSource</res-type> <res-auth>Container</res-auth> <res-sharing-scope>Shareable</res-sharing-scope> </resource-ref> In context.xml (tomcat conf): <Resource auth="Container" driverClassName="com.mysql.jdbc.Driver" maxActive="100" maxIdle="30" maxWait="10000" name="jdbc/OrdiniWebDS" password="[mypassword]" type="javax.sql.DataSource" url="jdbc:mysql://[myHost:port]/ordiniweb" username="[myusername]" /> The database is a MySql 5.0. Everything

Communications link failure due to: java.io.EOFException

久未见 提交于 2019-11-27 06:22:42
问题 My webapp is running on Tomcat 5.5, I declared the datasource in web.xml: <resource-ref> <res-ref-name>jdbc/OrdiniWebDS</res-ref-name> <res-type>javax.sql.DataSource</res-type> <res-auth>Container</res-auth> <res-sharing-scope>Shareable</res-sharing-scope> </resource-ref> In context.xml (tomcat conf): <Resource auth="Container" driverClassName="com.mysql.jdbc.Driver" maxActive="100" maxIdle="30" maxWait="10000" name="jdbc/OrdiniWebDS" password="[mypassword]" type="javax.sql.DataSource" url=