[Persistence, JBoss/CMP, Hibernate, Database] - Hibernate query not smart!
by mimmo67
Hi all.
I have a query automatically generate by Hibernate derived from different classes often mapped on the same Oracle table.
The problem is that I obtain something like this:
select * from A action0_
left outer join
B action0_1_
on action0_.TRANS_ID=action0_1_.TRANS_ID
left outer join
C action0_2_
on action0_.TRANS_ID=action0_2_.TRANS_ID
left outer join
C action0_3_
on action0_.TRANS_ID=action0_3_.TRANS_ID
left outer join
C action0_4_
on action0_.TRANS_ID=action0_4_.TRANS_ID where
.........
The same table is outer joined 3 times. This drammatically reduce the query performance.
There is a way to indicate to Hibernate to generate better queries where different classes use the same Oracle tables or I have to work only on the mapping to avoid situation like this?
Thank you.
Best regards from Italy,
Domenico
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4211486#4211486
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4211486
17 years, 2 months
[JBoss Messaging] - Re: Message Driven Beans do not reconnect after restarting t
by oisino
Hi,
I believe I'm getting a similar issue to that outlined above, using JBoss Messaging jboss-messaging-1.4.0.SP3 installed on JBoss 4.2.2.GA app server. the version of jboss-remoting is 2.2.2SP4, so it should contain a fix for the issue above.
The stack trace is as below,
thanks,
OisÃn.
2009-02-19 13:59:55,755 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] Periodic recovery - first pass <Thu, 19 Feb 2009 13:59:55>
2009-02-19 13:59:55,755 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] StatusModule: first pass
2009-02-19 13:59:55,771 DEBUG [com.arjuna.ats.txoj.logging.txojLoggerI18N] [com.arjuna.ats.internal.txoj.recovery.TORecoveryModule_3] - TORecoveryModule - first pass
2009-02-19 13:59:55,771 DEBUG [com.arjuna.ats.jta.logging.loggerI18N] [com.arjuna.ats.internal.jta.recovery.info.firstpass] Local XARecoveryModule - first pass
2009-02-19 14:00:05,771 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] Periodic recovery - second pass <Thu, 19 Feb 2009 14:00:05>
2009-02-19 14:00:05,771 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] AtomicActionRecoveryModule: Second pass
2009-02-19 14:00:05,771 DEBUG [com.arjuna.ats.txoj.logging.txojLoggerI18N] [com.arjuna.ats.internal.txoj.recovery.TORecoveryModule_6] - TORecoveryModule - second pass
2009-02-19 14:00:05,771 DEBUG [com.arjuna.ats.jta.logging.loggerI18N] [com.arjuna.ats.internal.jta.recovery.info.secondpass] Local XARecoveryModule - second pass
2009-02-19 14:01:13,895 DEBUG [org.jboss.remoting.transport.bisocket.BisocketServerInvoker] Error creating a control socket
java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:507)
at java.net.Socket.connect(Socket.java:457)
at java.net.Socket.(Socket.java:365)
at java.net.Socket.(Socket.java:178)
at org.jboss.remoting.transport.bisocket.BisocketServerInvoker.createControlConnection(BisocketServerInvoker.java:258)
at org.jboss.remoting.transport.bisocket.BisocketClientInvoker.transport(BisocketClientInvoker.java:407)
at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
at org.jboss.remoting.Client.invoke(Client.java:1634)
at org.jboss.remoting.Client.addCallbackListener(Client.java:1703)
at org.jboss.remoting.Client.addListener(Client.java:921)
at org.jboss.jms.client.remoting.JMSRemotingConnection.addInvokerCallbackHandler(JMSRemotingConnection.java:230)
at org.jboss.jms.client.remoting.JMSRemotingConnection.start(JMSRemotingConnection.java:340)
at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.org$jboss$jms$client$delegate$ClientConnectionFactoryDelegate$createConnectionDelegate$aop(ClientConnectionFactoryDelegate.java:154)
at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.invokeNext(ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.java)
at org.jboss.jms.client.container.StateCreationAspect.handleCreateConnectionDelegate(StateCreationAspect.java:83)
at org.jboss.aop.advice.org.jboss.jms.client.container.StateCreationAspect0.invoke(StateCreationAspect0.java)
at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.invokeNext(ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.java)
at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.createConnectionDelegate(ClientConnectionFactoryDelegate.java)
at org.jboss.jms.client.JBossConnectionFactory.createConnectionInternal(JBossConnectionFactory.java:205)
at org.jboss.jms.client.JBossConnectionFactory.createQueueConnection(JBossConnectionFactory.java:101)
at org.jboss.jms.client.JBossConnectionFactory.createQueueConnection(JBossConnectionFactory.java:95)
at org.jboss.resource.adapter.jms.inflow.dlq.AbstractDLQHandler.setupDLQConnection(AbstractDLQHandler.java:137)
at org.jboss.resource.adapter.jms.inflow.dlq.AbstractDLQHandler.setup(AbstractDLQHandler.java:83)
at org.jboss.resource.adapter.jms.inflow.dlq.JBossMQDLQHandler.setup(JBossMQDLQHandler.java:48)
at org.jboss.resource.adapter.jms.inflow.JmsActivation.setupDLQ(JmsActivation.java:369)
at org.jboss.resource.adapter.jms.inflow.JmsActivation.setup(JmsActivation.java:315)
at org.jboss.resource.adapter.jms.inflow.JmsActivation$SetupActivation.run(JmsActivation.java:635)
at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:204)
at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:275)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:756)
at java.lang.Thread.run(Thread.java:595)
2009-02-19 14:01:14,895 ERROR [org.jboss.remoting.transport.bisocket.BisocketServerInvoker] unable to create control connection after 10 retries
java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:507)
at java.net.Socket.connect(Socket.java:457)
at java.net.Socket.(Socket.java:365)
at java.net.Socket.(Socket.java:178)
at org.jboss.remoting.transport.bisocket.BisocketServerInvoker.createControlConnection(BisocketServerInvoker.java:258)
at org.jboss.remoting.transport.bisocket.BisocketClientInvoker.transport(BisocketClientInvoker.java:407)
at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
at org.jboss.remoting.Client.invoke(Client.java:1634)
at org.jboss.remoting.Client.addCallbackListener(Client.java:1703)
at org.jboss.remoting.Client.addListener(Client.java:921)
at org.jboss.jms.client.remoting.JMSRemotingConnection.addInvokerCallbackHandler(JMSRemotingConnection.java:230)
at org.jboss.jms.client.remoting.JMSRemotingConnection.start(JMSRemotingConnection.java:340)
at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.org$jboss$jms$client$delegate$ClientConnectionFactoryDelegate$createConnectionDelegate$aop(ClientConnectionFactoryDelegate.java:154)
at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.invokeNext(ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.java)
at org.jboss.jms.client.container.StateCreationAspect.handleCreateConnectionDelegate(StateCreationAspect.java:83)
at org.jboss.aop.advice.org.jboss.jms.client.container.StateCreationAspect0.invoke(StateCreationAspect0.java)
at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.invokeNext(ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.java)
at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.createConnectionDelegate(ClientConnectionFactoryDelegate.java)
at org.jboss.jms.client.JBossConnectionFactory.createConnectionInternal(JBossConnectionFactory.java:205)
at org.jboss.jms.client.JBossConnectionFactory.createQueueConnection(JBossConnectionFactory.java:101)
at org.jboss.jms.client.JBossConnectionFactory.createQueueConnection(JBossConnectionFactory.java:95)
at org.jboss.resource.adapter.jms.inflow.dlq.AbstractDLQHandler.setupDLQConnection(AbstractDLQHandler.java:137)
at org.jboss.resource.adapter.jms.inflow.dlq.AbstractDLQHandler.setup(AbstractDLQHandler.java:83)
at org.jboss.resource.adapter.jms.inflow.dlq.JBossMQDLQHandler.setup(JBossMQDLQHandler.java:48)
at org.jboss.resource.adapter.jms.inflow.JmsActivation.setupDLQ(JmsActivation.java:369)
at org.jboss.resource.adapter.jms.inflow.JmsActivation.setup(JmsActivation.java:315)
at org.jboss.resource.adapter.jms.inflow.JmsActivation$SetupActivation.run(JmsActivation.java:635)
at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:204)
at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:275)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:756)
at java.lang.Thread.run(Thread.java:595)
2009-02-19 14:01:14,910 WARN [org.jboss.remoting.Client] unable to remove remote callback handler: Can not remove callback listener from target server with id of a3x138-x59b0f-frdgytyc-1-frdgzid8-6+a3x138-x59b0f-frdgytyc-1-frdgzie3-b as it does not exist as a registered callback listener.
2009-02-19 14:01:14,910 DEBUG [org.jboss.remoting.ServerInvoker] ServerInvoker (SocketServerInvoker[UNINITIALIZED]) removing client callback handler with session id of a3x138-x59b0f-frdgytyc-1-frdgzid8-6+a3x138-x59b0f-frdgytyc-1-frdgzie3-b.
2009-02-19 14:01:14,910 DEBUG [org.jboss.remoting.transport.bisocket.BisocketServerInvoker] unrecognized listener ID: a3x138-x59b0f-frdgytyc-1-frdgzie3-b
2009-02-19 14:01:14,910 DEBUG [org.jboss.remoting.InvokerRegistry] removed org.jboss.remoting.transport.local.LocalClientInvoker@17b6249 from registry
2009-02-19 14:01:14,910 DEBUG [org.jboss.remoting.ServerInvoker] SocketServerInvoker[UNINITIALIZED] stopped
2009-02-19 14:01:14,910 DEBUG [org.jboss.remoting.LeasePinger] LeasePinger[SocketClientInvoker[45f4ae, bisocket://192.168.196.31:4457](a3x138-x59b0f-frdgytyc-1-frdgzid8-8)] setting disconnect timeout to: -1
2009-02-19 14:01:14,910 DEBUG [org.jboss.remoting.InvokerRegistry] removed SocketClientInvoker[45f4ae, bisocket://192.168.196.31:4457] from registry
2009-02-19 14:01:14,910 DEBUG [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] SocketClientInvoker[45f4ae, bisocket://192.168.196.31:4457] disconnecting ...
2009-02-19 14:01:14,910 DEBUG [org.jboss.remoting.transport.socket.SocketWrapper] ClientSocketWrapper[Socket[addr=/192.168.196.31,port=4457,localport=2240].1b0f38a] closing
2009-02-19 14:01:14,910 DEBUG [org.jboss.remoting.transport.socket.SocketWrapper] ClientSocketWrapper[Socket[addr=/192.168.196.31,port=4457,localport=2239].44f218] closing
2009-02-19 14:01:14,910 DEBUG [org.jboss.remoting.InvokerRegistry] removed SocketClientInvoker[aea5cd, bisocket://192.168.196.31:4457] from registry
2009-02-19 14:01:14,910 DEBUG [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] SocketClientInvoker[aea5cd, bisocket://192.168.196.31:4457] disconnecting ...
2009-02-19 14:01:14,910 WARN [org.jboss.resource.adapter.jms.inflow.JmsActivation] Failure in jms activation org.jboss.resource.adapter.jms.inflow.JmsActivationSpec@8bb9d1(ra=org.jboss.resource.adapter.jms.JmsResourceAdapter(a)1bd7d0e destination=queue/OMA-to-Lynx-Queue isTopic=false tx=true durable=true reconnect=10 provider=java:/OMARemoteJMSProvider user=Lynx2OMA pass=<not shown> maxMessages=1 minSession=1 maxSession=1 keepAlive=60000 useDLQ=true DLQHandler=org.jboss.resource.adapter.jms.inflow.dlq.GenericDLQHandler DLQJndiName=queue/DLQ DLQUser=null DLQMaxResent=5)
org.jboss.jms.exception.MessagingNetworkFailureException
at org.jboss.jms.client.delegate.DelegateSupport.handleThrowable(DelegateSupport.java:245)
at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.org$jboss$jms$client$delegate$ClientConnectionFactoryDelegate$createConnectionDelegate$aop(ClientConnectionFactoryDelegate.java:187)
at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.invokeNext(ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.java)
at org.jboss.jms.client.container.StateCreationAspect.handleCreateConnectionDelegate(StateCreationAspect.java:83)
at org.jboss.aop.advice.org.jboss.jms.client.container.StateCreationAspect0.invoke(StateCreationAspect0.java)
at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.invokeNext(ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.java)
at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.createConnectionDelegate(ClientConnectionFactoryDelegate.java)
at org.jboss.jms.client.JBossConnectionFactory.createConnectionInternal(JBossConnectionFactory.java:205)
at org.jboss.jms.client.JBossConnectionFactory.createQueueConnection(JBossConnectionFactory.java:101)
at org.jboss.jms.client.JBossConnectionFactory.createQueueConnection(JBossConnectionFactory.java:95)
at org.jboss.resource.adapter.jms.inflow.dlq.AbstractDLQHandler.setupDLQConnection(AbstractDLQHandler.java:137)
at org.jboss.resource.adapter.jms.inflow.dlq.AbstractDLQHandler.setup(AbstractDLQHandler.java:83)
at org.jboss.resource.adapter.jms.inflow.dlq.JBossMQDLQHandler.setup(JBossMQDLQHandler.java:48)
at org.jboss.resource.adapter.jms.inflow.JmsActivation.setupDLQ(JmsActivation.java:369)
at org.jboss.resource.adapter.jms.inflow.JmsActivation.setup(JmsActivation.java:315)
at org.jboss.resource.adapter.jms.inflow.JmsActivation$SetupActivation.run(JmsActivation.java:635)
at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:204)
at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:275)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:756)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:507)
at java.net.Socket.connect(Socket.java:457)
at java.net.Socket.(Socket.java:365)
at java.net.Socket.(Socket.java:178)
at org.jboss.remoting.transport.bisocket.BisocketServerInvoker.createControlConnection(BisocketServerInvoker.java:258)
at org.jboss.remoting.transport.bisocket.BisocketClientInvoker.transport(BisocketClientInvoker.java:407)
at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
at org.jboss.remoting.Client.invoke(Client.java:1634)
at org.jboss.remoting.Client.addCallbackListener(Client.java:1703)
at org.jboss.remoting.Client.addListener(Client.java:921)
at org.jboss.jms.client.remoting.JMSRemotingConnection.addInvokerCallbackHandler(JMSRemotingConnection.java:230)
at org.jboss.jms.client.remoting.JMSRemotingConnection.start(JMSRemotingConnection.java:340)
at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.org$jboss$jms$client$delegate$ClientConnectionFactoryDelegate$createConnectionDelegate$aop(ClientConnectionFactoryDelegate.java:154)
... 18 more
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4211479#4211479
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4211479
17 years, 2 months
[Clustering/JBoss] - Clustering for a non-http based application on JBoss
by sapan0832
Hi,
I am trying to configure JBoss 4.2.3.GA for clustering applictions (not a web application). Since it is not a web application I am not configuring Apache and mod_jk.
Here are the steps I followed for configuring clustering on JBoss:
1. Copied $JBOSS_HOME/server/all and renamed it asÃÂÃÂ $JBOSS_HOME/server/node1
2. InÃÂ $JBOSS_HOME/server/node1/cluster-service.xml renamed all "DefaultPartition" to "TestPartition11".
3. Started the server with the following command: ./run.sh -c node1 -b 10.10.10.174
4. Repeated steps 1-3 for node2 on another machine in same network where JBoss AS v4.2.3 is installed.
5. This is a snippet of the console where it added new member to the cluster and deleted a member when one server was shut down.
16:42:53,155 INFOÃÂ [TestPartition11] New cluster view for partition TestPartition11 (id: 1, delta: 1) : [10.10.10.174:1099, 10.10.10.171:1099]
16:42:53,157 INFOÃÂ [TestPartition11] I am (10.10.10.174:1099) received membershipChanged event:
16:42:53,157 INFOÃÂ [TestPartition11] Dead members: 0 ([])
16:42:53,157 INFOÃÂ [TestPartition11] New Members : 1 ([10.10.10.171:1099])
16:42:53,157 INFOÃÂ [TestPartition11] All Members : 2 ([10.10.10.174:1099, 10.10.10.171:1099])
16:42:55,656 INFOÃÂ [TestPartition11] New cluster view for partition TestPartition11 (id: 2, delta: -1) : [10.10.10.174:1099]
16:42:55,657 INFOÃÂ [TestPartition11] I am (10.10.10.174:1099) received membershipChanged event:
16:42:55,657 INFOÃÂ [TestPartition11] Dead members: 1 ([10.10.10.171:1099])
16:42:55,657 INFOÃÂ [TestPartition11] New Members : 0 ([])
16:42:55,657 INFOÃÂ [TestPartition11] All Members : 1 ([10.10.10.174:1099])
16:42:56,055 INFOÃÂ [TreeCache] viewAccepted(): [10.10.10.174:49394|2] [10.10.10.174:49394]
16:42:56,469 INFOÃÂ [TreeCache] viewAccepted(): [10.10.10.174:49401|1] [10.10.10.174:49401, 10.10.10.171:49999]
When I tried farming deployment it gave the following message and the file did not get transferred to the other node in the cluster.
16:44:42,987 INFOÃÂ [ClusterFileTransfer] Start push of file cluster-examples-test-service.xml to cluster.
16:44:43,041 INFOÃÂ [ClusterFileTransfer] Finished push of file cluster-examples-test-service.xml to cluster.
16:44:43,524 WARNÃÂ [UDP] packet from 169.254.117.161:49667 has different version (12338) from ours (2.4.1). Packet is discarded
16:44:52,320 WARNÃÂ [UDP] packet from 169.254.117.161:49673 has different version (12338) from ours (2.4.1). Packet is discarded
16:44:57,746 WARNÃÂ [UDP] packet from 169.254.117.161:49664 has different version (12338) from ours (2.4.1). Packet is discarded
I am not able to test farming deployment or session replication due to this warning.
What else do I need to follow to configure JBoss clustering? Please advise.
Regards,
Sapan.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4211467#4211467
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4211467
17 years, 2 months
[EJB 3.0] - Re: Deployment EJB3 5.0 GA migration
by horstL
hi jaikiran,
first thanx for response :-)
yes bug seem to be the same, problem the ear has a size about 20Mb and is my work of the last year:-) therefore i don't want to upload it anywhere...
i have a smaller test application (same style of implementation) but with this one the failure is not reproduceable, it seems only with a lot of beans the problem is coming up...
but can you tell me how the loading and registration is running of the entity beans and the sessionbeans, then i will help to resolve this problem
as i have seen there are this steps
1) checking dependencies of the beans
(JBossASKernel) Created KernelDeployment: installs SLSB with dependencies
2) register all beans without dep on persistence unit
(SessionSpecContainer) Starting bean only Facade (managerbean/remote if)
(EJBContainer) info about started
(JndiSessionRegistrarBase) registering for binding global jndi (managerbean with @remote)
3) database (what is this?: WARN [org.hibernate.ejb.Ejb3Configuration] (main) Persistence provider caller does not implement the EJB3 spec correctly.PersistenceUnitInfo.getNewTempClassLoader() is null)
(Ejb3Configuration) db handling schema/table generation etc
(SessionSpecContainer/EJBContainer) starting the EJB3 beans
4) register beans with persistence unit dep
(SessionSpecContainer) Starting bean only PeristenceContext (entitymanager)
(EJBContainer) info about started
(JndiSessionRegistrarBase) registering for binding global jndi (entitymanager with @local)
FAILURE always in this setp
but it seems that the failure is in a step afterwards and only the logging is to slow...
whats coming up next ?
br horst
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4211463#4211463
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4211463
17 years, 2 months
[JCA/JBoss] - Re: Integration with Oracle AQ via Sun Adapter
by ryandavid
Ok, the last exception was due to the ExceptionListener that I was trying to set.
So I removed that from my client code. Now I get this exception when I create a QueueSession
java.lang.NoSuchMethodError: oracle.jdbc.internal.OracleConnection.getDbCsId()S
| at oracle.jms.AQjmsSession.setDBRatio(AQjmsSession.java:474)
| at oracle.jms.AQjmsSession.<init>(AQjmsSession.java:343)
| at oracle.jms.AQjmsConnection.createQueueSession(AQjmsConnection.java:653)
| at com.sun.genericra.outbound.ManagedConnection.createLocalSession(ManagedConnection.java:180)
| at com.sun.genericra.outbound.ManagedConnection.getPhysicalJMSSession(ManagedConnection.java:117)
| at com.sun.genericra.outbound.ConnectionHandle.createSession(ConnectionHandle.java:223)
| at com.sun.genericra.outbound.ConnectionHandle.createQueueSession(ConnectionHandle.java:246)
| at it.senato.testjms.FeederServlet.sendMessage(FeederServlet.java:157)
| at it.senato.testjms.FeederServlet.process(FeederServlet.java:125)
| at it.senato.testjms.FeederServlet.doGet(FeederServlet.java:96)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
| at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
| at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| at java.lang.Thread.run(Thread.java:595)
|
Can be a problem of jars version ?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4211454#4211454
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4211454
17 years, 2 months