[JBoss Messaging Users] - Re: Bridge - Once and only once, connections failing after i
by rnicholson10
Howard,
I'd like to raise another point on this issue. Every time this happens we simply restart each JBoss instance and it all starts working again. The main problem being that when the issue arises we cannot send messages to the local queue, so we essentially have lost these messages before we restart JBoss.
Example:
Box1: Just has a locally deployed queue
Box2: Contains the remote queue we wish to send to and the bridge from the local queue on box1 to the remote queue here.
When the bridge dies, we cannot send any messages to the local queue on box1. Surely we should always be able to send messages to the local queue on box1? The bridge should not be able to effect this action. If this happened then repairing the bridge would let messages be delivered to the remote queue once more with no loss of messages.
I know you can't reproduce the error I'm getting but at least if all messages always made onto onto the local queue recovery would be possible.
I think that a good rule of thumb would be: "If the local queue is deployed correctly, it should always be possible to put messages on this queue".
What do you think?
Ross
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4251036#4251036
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4251036
16 years, 8 months
[JCA] - DataSource Failover in Cluster JBoss
by NJaganMohanRao
Hello Every One,
My Application Environment is :
1. JBoss 4.2.3 GA,
2. Postgres 3.3.1,
3. Ejb 3.0.
I am facing a problem while Data Source Fail over in JBoss Cluster, I am receiving a WARN: message while fail over takes place, I would like to over come this problem.
I have implemented org.jboss.resource.adapter.jdbc.ValidConnectionChecker but I don't find the any clue how to verify the postgres connection(valid connection / invalid connection).
The WARNING as follows:
<log4j:event logger="org.jboss.resource.connectionmanager.TxConnectionManager" timestamp="1250834952093" level="WARN" thread="WorkerThread#1[150.158.73.245:3566]">
<![CDATA[Connection error occured: org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener@eb9dfa[state=NORMAL mc=org.jboss.resource.adapter.jdbc.xa.XAManagedConnection@741322 handles=0 lastUse=1250834946843 permit=false trackByTx=false mcp=org.jboss.resource.connectionmanager.JBossManagedConnectionPool$OnePool@943b29 context=org.jboss.resource.connectionmanager.InternalManagedConnectionPool@1b80e60 xaResource=org.jboss.resource.connectionmanager.xa.JcaXAResourceWrapper@1e6cecc txSync=null]]]></log4j:message>
<log4j:throwable><![CDATA[org.postgresql.util.PSQLException: An I/O error occured while sending to the backend.
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:218)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:451)
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:336)
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:235)
at sun.reflect.GeneratedMethodAccessor82.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.postgresql.ds.jdbc23.AbstractJdbc23PooledConnection$StatementHandler.invoke(AbstractJdbc23PooledConnection.java:477)
at $Proxy64.executeQuery(Unknown Source)
at com.barco.cms.database.replication.sorters.CMSValideConnectionChecker.isValidConnection(CMSValideConnectionChecker.java:97)
at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnectionFactory.isValidConnection(BaseWrapperManagedConnectionFactory.java:458)
at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.checkValid(BaseWrapperManagedConnection.java:322)
at org.jboss.resource.adapter.jdbc.xa.XAManagedConnectionFactory.matchManagedConnections(XAManagedConnectionFactory.java:182)
at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:213)
at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:613)
at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:347)
at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:330)
at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:402)
at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:849)
at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:89)
at org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider.getConnection(InjectedDataSourceConnectionProvider.java:47)
at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:423)
at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:144)
at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:139)
at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1547)
at org.hibernate.loader.Loader.doQuery(Loader.java:673)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)
at org.hibernate.loader.Loader.doList(Loader.java:2220)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104)
at org.hibernate.loader.Loader.list(Loader.java:2099)
at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:378)
at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)
at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
at org.hibernate.ejb.QueryImpl.getSingleResult(QueryImpl.java:80)
at com.barco.cms.database.replication.test.ReplicationTest.findEntity(ReplicationTest.java:63)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:95)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:110)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:304)
at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:908)
at org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:742)
at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:695)
at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:522)
at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:230)
Caused by: java.net.SocketException: Connection reset by peer: socket write error
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
at org.postgresql.core.PGStream.flush(PGStream.java:508)
at org.postgresql.core.v3.QueryExecutorImpl.sendSync(QueryExecutorImpl.java:676)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:191)
... 70 more
I am Eagerly waiting for the solution.
If any one have solution its most appreciated.
Thanks in Advance,
Jagan.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4251031#4251031
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4251031
16 years, 8 months
[JBoss Portal Users] - No such method --> org.jboss.portal.portlet.impl.jsr168.api.
by jberdat@hotmail.com
Hello,
On my xhtml page I've the following tag:
| <a:mediaOutput element="img" cacheable="false" session="true" createContent="#{quoteAction.generateChart}" mimeType="image/png" />
|
And it seems that this entry causes the following exception as it is looking for an outputstream to write the image:
| 15:39:45,557 ERROR [home_prototype_portal_quote_portlet_QuoteListPortlet] The portlet threw an exception
| javax.faces.FacesException: java.lang.NoSuchMethodException: org.jboss.portal.portlet.impl.jsr168.api.ResourceResponseImpl.getOutputStream()
| at org.ajax4jsf.resource.FacesResourceContext.getOutputStream(FacesResourceContext.java:124)
| at org.ajax4jsf.resource.UserResource.send(UserResource.java:108)
|
And obviously, the method getOutputStream does not exists as it is getPortletOutputStream. Does someone knows what I could have misconfigured.
Regards,
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4251024#4251024
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4251024
16 years, 8 months