[JCA/JBoss] - Message DB + Oracle database connection count problems
by sks4jboss
We are running Jboss4.0.2. We use it for queuing as well as maintaing connection pool to the database.
Occasionally we see (lots of when it happens) below error in the logs.
anonymous wrote :
| 19:34:32,947 WARN [TransactionImpl] Transaction TransactionImpl:XidImpl[FormatId=257, GlobalId=cmp2app01/47048438, BranchQual=, localId=47048438] timed out.
| status=STATUS_ACTIVE
| 19:34:32,951 WARN [TransactionImpl] Transaction TransactionImpl:XidImpl[FormatId=257, GlobalId=cmp2app01/47048446, BranchQual=, localId=47048446] timed out.
| status=STATUS_ACTIVE
| 19:34:32,951 WARN [TransactionImpl] Transaction TransactionImpl:XidImpl[FormatId=257, GlobalId=cmp2app01/47048449, BranchQual=, localId=47048449] timed out.
| status=STATUS_
|
|
What does above mean and what can be the impact ?
That is usually followed by the below error.
anonymous wrote :
|
| 19:35:28,023 INFO [TxConnectionManager] Could not enlist in transaction on entering meta-aware object!
| javax.transaction.SystemException: Could not get XAResource from ManagedConnection!javax.transaction.RollbackException: Already marked for rollback Transactio
| nImpl:XidImpl[FormatId=257, GlobalId=cmp2app01/47048500, BranchQual=, localId=47048500]
| at org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener.enlist(TxConnectionManager.java:441)
| at org.jboss.resource.connectionmanager.TxConnectionManager.managedConnectionReconnected(TxConnectionManager.java:322)
| at org.jboss.resource.connectionmanager.BaseConnectionManager2.reconnectManagedConnection(BaseConnectionManager2.java:583)
| at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:450)
| at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:874)
| at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:103)
| at com.mobilgw.sam.common.cp.celcom.WFCelcomComponentFactory.(WFCelcomComponentFactory.java:120)
| at com.mobilgw.sam.plugin.celcom.CheckAllowBlacklist.checkSubscriberForAllowBlackList(CheckAllowBlacklist.java:159)
| at com.mobilgw.sam.plugin.celcom.CheckAllowBlacklist.execute(CheckAllowBlacklist.java:80)
| at com.mobilgw.sam.executionengine.adapter.JavaAdapterHandler.execute(JavaAdapterHandler.java:84)
| at com.mobilgw.sam.executionengine.ExecutionEngine.execute(ExecutionEngine.java:575)
| at com.mobilgw.sam.executionengine.ExecutionEngine.execute(ExecutionEngine.java:460)
| at com.mobilgw.sam.executionengine.ExecutionEngine.execute(ExecutionEngine.java:586)
| at com.mobilgw.sam.executionengine.ExecutionEngine.execute(ExecutionEngine.java:460)
| at com.mobilgw.sam.executionengine.ExecutionEngine.execute(ExecutionEngine.java:455)
| at com.mobilgw.sam.executionengine.ExecutionEngine.execute(ExecutionEngine.java:361)
| at com.mobilgw.sam.executionengine.queue.SmsService.run(SmsService.java:575)
| at java.lang.Thread.run(Thread.java:534)
| 19:35:28,026 WARN [TxConnectionManager] Unchecked throwable in managedConnectionDisconnected()
| org.jboss.resource.JBossResourceException: Error in delist!; - nested throwable: (java.lang.IllegalArgumentException: xaRes not enlisted org.jboss.resource.co
| nnectionmanager.TxConnectionManager$LocalXAResource@1fdb707)
| at org.jboss.resource.connectionmanager.BaseConnectionManager2.rethrowAsResourceException(BaseConnectionManager2.java:101)
| at org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener.delist(TxConnectionManager.java:488)
| at org.jboss.resource.connectionmanager.TxConnectionManager.managedConnectionDisconnected(TxConnectionManager.java:337)
| at org.jboss.resource.connectionmanager.BaseConnectionManager2.disconnectManagedConnection(BaseConnectionManager2.java:601)
| at org.jboss.resource.connectionmanager.BaseConnectionManager2.reconnectManagedConnection(BaseConnectionManager2.java:587)
| at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:450)
| at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:874)
| at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:103)
| at com.mobilgw.sam.common.cp.celcom.WFCelcomComponentFactory.(WFCelcomComponentFactory.java:120)
| at com.mobilgw.sam.plugin.celcom.CheckAllowBlacklist.checkSubscriberForAllowBlackList(CheckAllowBlacklist.java:159)
| at com.mobilgw.sam.plugin.celcom.CheckAllowBlacklist.execute(CheckAllowBlacklist.java:80)
| at com.mobilgw.sam.executionengine.adapter.JavaAdapterHandler.execute(JavaAdapterHandler.java:84)
| at com.mobilgw.sam.executionengine.ExecutionEngine.execute(ExecutionEngine.java:575)
| at com.mobilgw.sam.executionengine.ExecutionEngine.execute(ExecutionEngine.java:460)
| at com.mobilgw.sam.executionengine.ExecutionEngine.execute(ExecutionEngine.java:586)
| at com.mobilgw.sam.executionengine.ExecutionEngine.execute(ExecutionEngine.java:460)
| at com.mobilgw.sam.executionengine.ExecutionEngine.execute(ExecutionEngine.java:455)
| at com.mobilgw.sam.executionengine.ExecutionEngine.execute(ExecutionEngine.java:361)
| at com.mobilgw.sam.executionengine.queue.SmsService.run(SmsService.java:575)
| at java.lang.Thread.run(Thread.java:534)
| Caused by: java.lang.IllegalArgumentException: xaRes not enlisted org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource@1fdb707
| at org.jboss.tm.TransactionImpl.delistResource(TransactionImpl.java:428)
| at org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener.delist(TxConnectionManager.java:476)
| ... 18 more
|
|
After this we usually find that there are no more connections left with the database. What could be the cause and where should I be searching for solutions?
Also is there any relation between connection pool for hypersonic DB and oracle DB? I have seen that usually DB connection problem occurs whenever we hit a problem with hypersonic DB in production. When the problem strikes we usually see that the sum of available and used connections doesn?t even sums up to the max configured in oracle-ds.xml
Any idea/suggestion would be really helpful.
Thanking in advance.
Suds
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066533#4066533
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066533
18Â years, 9Â months
[EJB 3.0] - Call Back Listeners not working - Please help
by gurubbc
EJB 3.0 Call Back methods are working, but the listeners are not working.
ListenerHelloCallBack.java (Interface)
/**
* This is the ListenerHelloCallBack business interface.
*/
public interface ListenerHelloCallBack {
/**
* @return a greeting to the client.
*/
public String listenerHelloCallBack();
}
Bean class:
import javax.ejb.*;
import javax.ejb.*;
/**
* Demonstration stateless session bean.
*/
@Stateful
@Remote(ListenerHelloCallBack.class)
@CallbackListener(CallBackListener.class)
public class ListenerHelloCallBackBean implements ListenerHelloCallBack {
public String listenerHelloCallBack() {
System.out.println("listenerHelloCallBack()");
return "Hello, Call Back Listener World!";
}
}
Call Back Listener class:
import javax.ejb.*;
import javax.ejb.*;
public class CallBackListener {
@Init
public void sayInit(Object obj)
{
System.out.println("This would be called upon Init from listener class");
}
@PostConstruct
public void sayPostConstruct(Object obj)
{
System.out.println("This would be called upon post construct from listener class");
}
@PreDestroy
public void sayPreDestroy(Object obj)
{
System.out.println("This would be called upon pre destroy from listener class");
}
@PrePassivate
public void sayPrePassivate(Object obj)
{
System.out.println("This would be called upon pre passivate from listener class");
}
@PostActivate
public void sayPostActivate(Object obj)
{
System.out.println("This would be called upon post activate from listener class");
}
public void finalize()
{
System.out.println("Finalize method is getting called...");
}
}
Client:
import javax.naming.Context;
import javax.naming.InitialContext;
import java.util.*;
import javax.naming.*;
/**
* This class is an example of client code which invokes
* methods on a simple, remote stateless session bean.
*/
public class ListenerHelloCallBackClient {
public static void main(String[] args) throws Exception {
/*
* Obtain the JNDI initial context.
*
* The initial context is a starting point for
* connecting to a JNDI tree. We choose our JNDI
* driver, the network location of the server, etc
* by passing in the environment properties.
*/
Properties p = new Properties();
//The JNDI properties you set depend
//on which server you are using.
//These properties are for the Remote Server.
p.put("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");
p.put("java.naming.provider.url", "jnp://localhost:1099");
p.put("java.naming.factory.url.pkgs", "org.jboss.naming rg.jnp.interfaces");
Context ctx = new InitialContext(p);
/*
* Get a reference to a bean instance, looked up by class name
*/
ListenerHelloCallBack listenerHelloCallBack = (ListenerHelloCallBack) ctx.lookup("ListenerHelloCallBack");
/*
* Call the helloCallBack() method on the bean.
* We then print the result to the screen.
*/
System.out.println(listenerHelloCallBack.listenerHelloCallBack());
listenerHelloCallBack=null;
}
}
But, none of the call back methods like @init, @postconstruct are working.
Please help.
Thanks,
Guru
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066531#4066531
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066531
18Â years, 9Â months
[JBoss Seam] - "h:selectOneMenu" with Ajax4JSF passing selection to backing
by raviies
I'm a JSF, Seam newbie; Excuse me if this is not the right forum
I have a form with a dropdown; I want to pass my selection on the "fly" to the backing bean by using Ajax4JSF;
Unfortunately I'm not able to able to pass on the "fly"; However form submit seems to work
Here's my code snippet:
| <f:view>
| <s:validateAll>
| <h:form>
| <h:panelGrid columns="2">
| .....
|
| SRB DataTransferScheme *
| <h:selectOneMenu id="dataTransferCombobox" value="#{loginBean.dataTransferScheme}"
| <a4j:support event="onchange" action="#{loginBean.setAuthFields(loginBean.dataTransferScheme)}"
| ajaxSingle="true" immediate="true"/>
| </h:selectOneMenu>
| </h:panelGrid>
| .....
|
| <h:commandButton value="Login" action="#{login.login}"/>
| </s:validateAll>
| </h:form>
|
| //LoginBean.java: [the Backing bean]
|
| public void setAuthFields(String dataTransferScheme)
| {
| System.out.println("dataTransferScheme : "+dataTransferScheme);
| }
|
I appreciate any suggestions, feedback
TIA
Ravi
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066524#4066524
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066524
18Â years, 9Â months
[Messaging, JMS & JBossMQ] - Re: Deploy Message listener as MBean service get No ClassLoa
by loseyourself
Thanks for your reply, adrian.
Ok, I create a jar and renamed it as sar, and deploy it in the JBOSS_HOME/server/default/deploy as Docs.sar, but I get following exception:
2007-07-23 11:16:39,903 DEBUG [org.jboss.deployment.SARDeployer] create operation failed for package file:/D:/Adobe/LiveCycle/jboss/server/all/deploy/Docs.sar/
org.jboss.deployment.DeploymentException: au.gov.nsw.community.mail.TopicMailListener.(); - nested throwable: (java.lang.NoSuchMethodException: au.gov.nsw.community.mail.TopicMailListener.())
at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:139)
at org.jboss.system.ServiceController.install(ServiceController.java:198)
at sun.reflect.GeneratedMethodAccessor24.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
at $Proxy4.install(Unknown Source)
at org.jboss.deployment.SARDeployer.create(SARDeployer.java:204)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:790)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:644)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:608)
at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
at $Proxy7.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:304)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:460)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:212)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:191)
my TopicMailListener.java code is as following:
private String url;
private String name;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public TopicMailListener(String name) {
super();
this.name = name;
try {
this.initializeListener();
} catch (Exception e) {
LOGGER.info("Error creating listener: " + e);
e.printStackTrace();
}
}
public TopicMailListener(String url, String name) {
super();
this.url = url;
this.name = name;
try {
this.initializeListener();
} catch (Exception e) {
LOGGER.info("Error creating listener: " + e);
e.printStackTrace();
}
}
the jboss-service.xml is:
<?xml version="1.0" encoding="UTF-8"?>
< server>
< mbean code="au.gov.nsw.community.mail.TopicMailListener" name="au.gov.nsw.community.mail:service=TopicMailListener">
< attribute name="Url">10.65.240.244:1099
< attribute name="Name">topic/testTopic
< depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager
< depends optional-attribute-name="SecurityManager">jboss.mq:service=SecurityManager
<!--
< attribute name="SecurityConf">
< security>
< role name="guest" read="true" write="true"/>
< role name="publisher" read="true" write="true" create="false"/>
< role name="durpublisher" read="true" write="true" create="true"/>
< /security>
< /attribute>
-->
the sar artitecture is:
META-INF/MANIFEST.MF
META-INF/jboss-service.xml
README.txt
WebContent/FormDataResubmit.jsp
WebContent/FormDataResubmitSuccess.jsp
WebContent/META-INF/MANIFEST.MFWebContent/WEB-INF/lib/AdobeCSAUtils.jar
WebContent/WEB-INF/lib/DocumentServicesLibrary.jar
WebContent/WEB-INF/lib/adobe-common.jar
WebContent/WEB-INF/lib/axis-ant.jar
WebContent/WEB-INF/lib/axis.jar
WebContent/WEB-INF/lib/commons-discovery.jar
WebContent/WEB-INF/lib/commons-logging.jar
WebContent/WEB-INF/lib/datamanager-client.jar
WebContent/WEB-INF/lib/formserver-client.jar
WebContent/WEB-INF/lib/jaxrpc.jar
WebContent/WEB-INF/lib/log4j-1.2.8.jar
WebContent/WEB-INF/lib/log4j.properties
WebContent/WEB-INF/lib/saaj.jar
WebContent/WEB-INF/lib/serializer.jar
WebContent/WEB-INF/lib/um-client.jar
WebContent/WEB-INF/lib/wsdl4j.jar
WebContent/WEB-INF/lib/xalan.jar
WebContent/WEB-INF/lib/xercesImpl.jar
WebContent/WEB-INF/lib/xml-apis.jar
WebContent/WEB-INF/lib/xmlform-client.jar
WebContent/WEB-INF/web.xml
WebContent/env.jsp
WebContent/home.jsp
WebContent/index.jsp
WebContent/params.jsp
au/gov/nsw/community/forms/exception/ProcessingException.class
au/gov/nsw/community/forms/livecycle/FormsProxy.class
au/gov/nsw/community/forms/processor/DataSubmitHandler.class
au/gov/nsw/community/forms/servlet/FormRequestServlet.class
au/gov/nsw/community/forms/servlet/FormDataResubmitServlet.class
au/gov/nsw/community/forms/servlet/FormSubmitServlet.class
au/gov/nsw/community/forms/servlet/AbstractDocsServlet.class
au/gov/nsw/community/forms/siebel/SiebelProxy.class
au/gov/nsw/community/mail/MailService$1.class
au/gov/nsw/community/mail/MailService.class
au/gov/nsw/community/mail/TopicMailListener.class
au/gov/nsw/community/mail/TopicMailListenerMBean.class
au/gov/nsw/community/mail/MailMessage.class
au/gov/nsw/community/mail/TopicMailSender.class
au/gov/nsw/community/util/XMLUtils.class
au/gov/nsw/community/util/StringUtils.class
au/gov/nsw/community/util/FileUtils.class
au/gov/nsw/community/util/XFAStipper.class
au/gov/nsw/community/xml/XMLUtilities.class
test/XPathTest.class
.classpath
.project
sampleData.xml
sample.xml
I thought it is related with the constructor method, but don't know how to fix, could you please advise me? I do appreciate your help.
hj
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066516#4066516
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066516
18Â years, 9Â months
[JBoss Portal] - Errors with Jboss Portal and Postgres
by sojoknuckle
I have installed Jboss Portal 2.6 GA(bundled with Jboss 4.0.5 GA)
as I work with the different features of the portal, most of the errors are around the CMS portlet in the admin portal. below is one of the many errors I am curious if any one else has seen these type of errors.
Configuration
Jboss Portal 2.6 GA bundled with 4.0.5 GA (from download site)
Postgresql 8.2.4
Postgresql JDBC version (8.2-505 JDBC 3)
JDK 1.5.0_07
MacOSX 10.4.10 PPC
Reading through the documentation it looks like postgres is a supported database server, I have used the portal-postgresql-ds.xml from the setup directory modified for my database configuration.
Any one that can help would be wonderful.
Cause: javax.portlet.PortletException: org.jboss.portal.cms.CMSException: javax.transaction.xa.XAException
| Message: org.jboss.portal.cms.CMSException: javax.transaction.xa.XAException
| StackTrace:
|
| javax.portlet.PortletException: org.jboss.portal.cms.CMSException: javax.transaction.xa.XAException
| at org.jboss.portal.core.cms.ui.admin.CMSAdminPortlet.processAction(CMSAdminPortlet.java:631)
| at org.jboss.portlet.JBossPortlet.processAction(JBossPortlet.java:361)
| at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.invokeAction(PortletContainerImpl.java:458)
| at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.dispatch(PortletContainerImpl.java:401)
| at org.jboss.portal.portlet.container.PortletContainerInvoker$1.invoke(PortletContainerInvoker.java:86)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.core.aspects.portlet.TransactionInterceptor.org$jboss$portal$core$aspects$portlet$TransactionInterceptor$invokeRequired$aop(TransactionInterceptor.java:106)
| at org.jboss.portal.core.aspects.portlet.TransactionInterceptor$invokeRequired_9103964459766407072.invokeNext(TransactionInterceptor$invokeRequired_9103964459766407072.java)
| at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126)
| at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:195)
| at org.jboss.portal.core.aspects.portlet.TransactionInterceptor$invokeRequired_9103964459766407072.invokeNext(TransactionInterceptor$invokeRequired_9103964459766407072.java)
| at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126)
| at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:195)
| at org.jboss.portal.core.aspects.portlet.TransactionInterceptor$invokeRequired_9103964459766407072.invokeNext(TransactionInterceptor$invokeRequired_9103964459766407072.java)
| at org.jboss.portal.core.aspects.portlet.TransactionInterceptor.invokeRequired(TransactionInterceptor.java)
| at org.jboss.portal.core.aspects.portlet.TransactionInterceptor.invoke(TransactionInterceptor.java:72)
| at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
| at org.jboss.portal.core.aspects.portlet.HeaderInterceptor.invoke(HeaderInterceptor.java:50)
| at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
| at org.jboss.portal.portlet.aspects.portlet.ProducerCacheInterceptor.invoke(ProducerCacheInterceptor.java:53)
| at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066515#4066515
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066515
18Â years, 9Â months