[IronJacamar] - Re: Could not enlist in transaction on entering meta-aware objec
by rpraveenkumar
rpraveenkumar [https://community.jboss.org/people/rpraveenkumar] created the discussion
"Re: Could not enlist in transaction on entering meta-aware objec"
To view the discussion, visit: https://community.jboss.org/message/780616#780616
--------------------------------------------------------------
For your reference my stack trace is
am wondering how this could not enlist will come even if i use only one <local-tx-datasource>
i think the exception occurs when trying to get connection from connection pool [based on following exception info]
org.jboss.util.NestedSQLException: Could not enlist in transaction on entering meta-aware object!javax.transaction.SystemException: enlistResource failed; - nested throwable: (javax.resource.ResourceException: Could not enlist in transaction on entering meta-aware object!javax.transaction.SystemException: enlistResource failed)
com.mysql.jdbc.exceptions.MySQLNonTransientConnectionException: No operations allowed after connection closed.Connection was implicitly closed due to underlying exception/error:
** BEGIN NESTED EXCEPTION **
com.mysql.jdbc.CommunicationsException
MESSAGE: Communications link failure due to underlying exception:
** BEGIN NESTED EXCEPTION **
java.net.SocketException
MESSAGE: Software caused connection abort: socket write error
STACKTRACE:
java.net.SocketException: Software caused connection abort: socket write error
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(Unknown Source)
at java.net.SocketOutputStream.write(Unknown Source)
at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
at java.io.BufferedOutputStream.flush(Unknown Source)
at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:2631)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1548)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1659)
at com.mysql.jdbc.Connection.execSQL(Connection.java:3112)
at com.mysql.jdbc.Connection.setAutoCommit(Connection.java:5209)
at org.jboss.resource.adapter.jdbc.local.LocalManagedConnection.begin(LocalManagedConnection.java:135)
at org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource.start(TxConnectionManager.java:650)
at org.jboss.tm.TransactionImpl.startResource(TransactionImpl.java:1196)
at org.jboss.tm.TransactionImpl.enlistResource(TransactionImpl.java:649)
at org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener.enlist(TxConnectionManager.java:437)
at org.jboss.resource.connectionmanager.TxConnectionManager.managedConnectionReconnected(TxConnectionManager.java:323)
at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:502)
.
.
.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/780616#780616]
Start a new discussion in IronJacamar at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 9 months
[jBPM] - While i try to load the JBPMorm.xml and ProcessInstanceInfo.hbm.xml files in the persistence.xml file, it break out
by 星兰 蒋
星兰 蒋 [https://community.jboss.org/people/jiang_hoo] created the discussion
"While i try to load the JBPMorm.xml and ProcessInstanceInfo.hbm.xml files in the persistence.xml file,it break out"
To view the discussion, visit: https://community.jboss.org/message/780331#780331
--------------------------------------------------------------
Caused by: org.hibernate.DuplicateMappingException: Duplicate collection role mapping org.jbpm.persistence.processinstance.ProcessInstanceInfo.eventTypes
at org.hibernate.cfg.Mappings.addCollection(Mappings.java:147)
at org.hibernate.cfg.HbmBinder.createClassProperties(HbmBinder.java:2085)
at org.hibernate.cfg.HbmBinder.createClassProperties(HbmBinder.java:2060)
at org.hibernate.cfg.HbmBinder.bindRootPersistentClassCommonValues(HbmBinder.java:381)
at org.hibernate.cfg.HbmBinder.bindRootClass(HbmBinder.java:295)
at org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:166)
at org.hibernate.cfg.Configuration.add(Configuration.java:716)
at org.hibernate.cfg.AnnotationConfiguration.processArtifactsOfType(AnnotationConfiguration.java:531)
at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:291)
at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1162)
at org.hibernate.ejb.Ejb3Configuration.buildMappings(Ejb3Configuration.java:1226)
at org.hibernate.ejb.EventListenerConfigurator.configure(EventListenerConfigurator.java:173)
at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:854)
at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:425)
at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:131)
at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:224)
at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:291)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1514)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452)
... 46 more
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/780331#780331]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 9 months
[IronJacamar] - Physically closing a set of connections
by Earnest Dyke
Earnest Dyke [https://community.jboss.org/people/earnest.dyke] created the discussion
"Physically closing a set of connections"
To view the discussion, visit: https://community.jboss.org/message/780392#780392
--------------------------------------------------------------
Greetings all,
I am still working on my JCA and I have been presented with a new requirement that I am not sure how to handle.
As it stands now, my JCA can create connections to 1 of 8 physical servers and on any given server the connection can be associated with a given "account". I have this working by implementing a ConnectionRequestInfo class that identifies a host and account. Works great!
Now our ops people want me to provide them with a method of physically closing all of the connections to a given physical server. So I would need access to a list of connections in a pool through which I could loop looking for matching connections based on host name, then physically close each matching connection. I have looked through the spec and the Ironjacamar code and I cannot find any methods that would seem to help.
Anyone have any ideas?
Thanks in advance for any and all relevant responses!
Earnie!
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/780392#780392]
Start a new discussion in IronJacamar at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 9 months
[jBPM] - Re: How to get a package from Guvnor and start it
by doboss
doboss [https://community.jboss.org/people/doboss] created the discussion
"Re: How to get a package from Guvnor and start it"
To view the discussion, visit: https://community.jboss.org/message/780425#780425
--------------------------------------------------------------
Okay, I am doing something wrong. :) If I use the following code the authentication works, and it looks like it is downloading the binary package:
private static KnowledgeBase readKnowledgeBase() throws Exception {
KnowledgeAgentConfiguration aconf = KnowledgeAgentFactory.newKnowledgeAgentConfiguration();
KnowledgeAgent kagent = KnowledgeAgentFactory.newKnowledgeAgent("test", aconf);
String url = "http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/defa...";
UrlResource resource = (UrlResource) ResourceFactory.newUrlResource(url);
resource.setBasicAuthentication("enabled");
resource.setUsername("guest");
resource.setPassword("guest");
kagent.applyChangeSet(resource);
return kagent.getKnowledgeBase();
}
I figured this out by sending it through the eclipse tcp/ip monitor proxy. And it looks like it is indeed getting the binary package. But I think the code is expecting a changeset, not a binary package. (Which is why I get the "ERROR drools.xml.ExtensibleXmlParser.fatalError - (null: 1, 1): Content is not allowed in prolog." - because it's expecting a changeset.xml, not the binary package.)
Which makes since as I am calling: kagent.applyChangeSet(resource);
So I think I'm almost there, I have to do something with the binary package, not try to apply it as a changeset...
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/780425#780425]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 9 months