Caused by: javax.transaction.xa.XAException: com.microsoft.sqlserver.jdbc.SQLServerException: The function START: has failed. No transaction cookie was returned

Hello guys,
I have been setting a production system with bitronix transaction manager, SQL server 2008, XA transactions and jetty 6. In the beginning this software was configured to run with MySQL. But one of my customer decided to move everything to MSSQL server 2008.
In that moment I was trying to get this up and running for some weeks (The configuration was completely different) and finally I got it.
The configuration with MSSQL server was running perfectly during 1 month but then from one day to other the error message I will show now appeared and I do not how to solve it. I almost read all the hints from google about this exception but nothing helped
me out.
I hope you guys can help me to find a way to solve it.
- I tried different version of the jdbc driver 3.0 and 4.0.
- I tried to export exactly the database to my localserver and it's running perfectly with the same configuration.
The problem is that I cannot reproduce the error in other place that is not the customer and at the same time I have no access to their internal database server. They installed all the XA transaction stuff (dll in binn, enable XA, and grant the permissions
for SQLXAUser), I am quite sure because it was running for one month without any problem.
I asked to the customer if anything happenend on their server (microsoft updates, machines reboot, ...) but nothing of these happened.
Also I tried this link out but did not help me.
<a href="http://social.msdn.microsoft.com/Forums/sqlserver/en-US/15c1e6f5-ec1e-4376-8f45-25e61ffc1306/the-function-start-has-failed-no-transaction-cookie-was-returned?forum=sqldataaccess">http://social.msdn.microsoft.com/Forums/sqlserver/en-US/15c1e6f5-ec1e-4376-8f45-25e61ffc1306/the-function-start-has-failed-no-transaction-cookie-was-returned?forum=sqldataaccess</a>
The exception is the following:
 [2014-05-15 14:06:08,842] INFO  3666[main] - org.mortbay.log.Slf4jLog.info(Slf4jLog.java:67) - Starting Bitronix Transaction Manager
[2014-05-15 14:06:08,951] INFO  3775[main] - org.mortbay.log.Slf4jLog.info(Slf4jLog.java:67) - Extract ./webapps/myscript-fpp-wrapper-server.war to D:\Temp\Jetty_0_0_0_0_8080_myscript.fpp.wrapper.server.war__myscript.form.wrapper.server__.bnwnn7\webapp
[2014-05-15 14:06:10,324] INFO  5148[main] - org.mortbay.log.Slf4jLog.info(Slf4jLog.java:67) - NO JSP Support for /myscript-form-wrapper-server, did not find org.apache.jasper.servlet.JspServlet
[2014-05-15 14:06:12,742] WARN  7566[main] - org.dozer.config.GlobalSettings.loadGlobalSettings(GlobalSettings.java:118) - Dozer configuration file not found: dozer.properties.  Using defaults for all Dozer global properties.
[2014-05-15 14:06:13,288] WARN  8112[main] - org.hibernate.util.JDBCExceptionReporter.logExceptions(JDBCExceptionReporter.java:100) - SQL Error: 0, SQLState: null
[2014-05-15 14:06:13,288]ERROR  8112[main] - org.hibernate.util.JDBCExceptionReporter.logExceptions(JDBCExceptionReporter.java:101) - error enlisting a JdbcConnectionHandle of a JdbcPooledConnection from datasource fppDataSource in state ACCESSIBLE with
usage count 1 wrapping SQLServerXAConnection:1 on  ProxyConnectionID:1
[2014-05-15 14:06:13,319]ERROR  8143[main] - org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:220) - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'moduleRegistration' defined in class path resource [com/visionobjects/myscript/fpp/wrapper/module-registration.xml]: Invocation of init method failed; nested exception is
org.hibernate.exception.GenericJDBCException: could not execute query
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1420)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
    at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
    at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:549)
    at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
    at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282)
    at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518)
    at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499)
    at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
    at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
    at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
    at org.mortbay.jetty.Server.doStart(Server.java:224)
    at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985)
    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.mortbay.start.Main.invokeMain(Main.java:194)
    at org.mortbay.start.Main.start(Main.java:534)
    at org.mortbay.start.Main.start(Main.java:441)
    at org.mortbay.start.Main.main(Main.java:119)
Caused by: org.hibernate.exception.GenericJDBCException: could not execute query
    at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:126)
    at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:114)
    at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
    at org.hibernate.loader.Loader.doList(Loader.java:2235)
    at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2129)
    at org.hibernate.loader.Loader.list(Loader.java:2124)
    at org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:118)
    at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1597)
    at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:306)
    at org.hibernate.impl.CriteriaImpl.uniqueResult(CriteriaImpl.java:328)
    at com.visionobjects.myscript.fpp.form.dao.impl.ModuleInfoDaoImpl.getModuleInfo(ModuleInfoDaoImpl.java:57)
    at com.visionobjects.myscript.fpp.ModuleRegistration$1.doInTransactionWithoutResult(ModuleRegistration.java:73)
    at org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:33)
    at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:130)
    at com.visionobjects.myscript.fpp.ModuleRegistration.init(ModuleRegistration.java:66)
    at com.visionobjects.myscript.fpp.ModuleRegistration.start(ModuleRegistration.java:60)
    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.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1544)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1485)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)
    ... 33 more
Caused by: java.sql.SQLException: error enlisting a JdbcConnectionHandle of a JdbcPooledConnection from datasource fppDataSource in state ACCESSIBLE with usage count 1 wrapping SQLServerXAConnection:1 on  ProxyConnectionID:1
    at bitronix.tm.resource.jdbc.JdbcConnectionHandle.enlistResource(JdbcConnectionHandle.java:86)
    at bitronix.tm.resource.jdbc.JdbcConnectionHandle.prepareStatement(JdbcConnectionHandle.java:243)
    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 bitronix.tm.resource.jdbc.BaseProxyHandlerClass.invoke(BaseProxyHandlerClass.java:63)
    at $Proxy29.prepareStatement(Unknown Source)
    at org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:534)
    at org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:452)
    at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:161)
    at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1577)
    at org.hibernate.loader.Loader.doQuery(Loader.java:696)
    at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:259)
    at org.hibernate.loader.Loader.doList(Loader.java:2232)
    ... 52 more
Caused by: bitronix.tm.internal.BitronixSystemException: cannot enlist an XAResourceHolderState with uniqueName=fppDataSource XAResource= XAResourceID:1 with XID a Bitronix XID [6A657474792D6670702D73657276657200000145FFC68B9B00000000 : 6A657474792D6670702D73657276657200000145FFC68BCA00000002],
error=XAER_RMERR
    at bitronix.tm.BitronixTransaction.enlistResource(BitronixTransaction.java:100)
    at bitronix.tm.resource.common.TransactionContextHelper.enlistInCurrentTransaction(TransactionContextHelper.java:70)
    at bitronix.tm.resource.jdbc.JdbcConnectionHandle.enlistResource(JdbcConnectionHandle.java:84)
    ... 66 more
<b>Caused by: javax.transaction.xa.XAException: com.microsoft.sqlserver.jdbc.SQLServerException: The function START: has failed. No transaction cookie was returned </b>
    at com.microsoft.sqlserver.jdbc.SQLServerXAResource.DTC_XA_Interface(SQLServerXAResource.java:642)
    at com.microsoft.sqlserver.jdbc.SQLServerXAResource.start(SQLServerXAResource.java:674)
    at bitronix.tm.internal.XAResourceHolderState.start(XAResourceHolderState.java:211)
    at bitronix.tm.internal.XAResourceManager.enlist(XAResourceManager.java:108)
    at bitronix.tm.BitronixTransaction.enlistResource(BitronixTransaction.java:93)
    ... 68 more
I think the "bold" exception is the key.
Also the configuration file of my jetty server.
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd">
<!-- developpment jetty configuration -->
<!-- launch with main class : org.mortbay.start.Main app arguments:
deploy-conf/jetty-conf/mysql/jetty-dev.xml vm arguments : -Xmx1024M -DSTOP.KEY=stop
-DSTOP.PORT=6669 to stop : - - stop -Xmx1024M -DSTOP.KEY=stop -DSTOP.PORT=6669 -->
<Configure id="Server" class="org.mortbay.jetty.Server">
<Array id="plusConfig" type="java.lang.String">
<Item>org.mortbay.jetty.webapp.WebInfConfiguration</Item>
<Item>org.mortbay.jetty.plus.webapp.EnvConfiguration</Item>
<Item>org.mortbay.jetty.plus.webapp.Configuration</Item>
<Item>org.mortbay.jetty.webapp.JettyWebXmlConfiguration</Item>
<Item>org.mortbay.jetty.webapp.TagLibConfiguration</Item>
</Array>
<Array id="serverClasses" type="java.lang.String">
</Array>
<Array id="systemClasses" type="java.lang.String">
</Array>
<!-- web apps -->
<Set name="handler">
<New id="handlerContext" class="org.mortbay.jetty.handler.ContextHandlerCollection">
<Set name="handlers">
<Array id="handlerArray" type="org.mortbay.jetty.webapp.WebAppContext">
<!-- wrapper server -->
<Item>
<New class="org.mortbay.jetty.webapp.WebAppContext">
<Arg>./webapps/myscript-fpp-wrapper-server.war</Arg>
<Arg>/myscript-form-wrapper-server</Arg>
<Set name="serverClasses">
<Ref id="serverClasses" />
</Set>
<Set name="ConfigurationClasses">
<Ref id="plusConfig" />
</Set>
</New>
</Item>
<!-- form server -->
<Item>
<New class="org.mortbay.jetty.webapp.WebAppContext">
<Arg>./webapps/myscript-fpp-form-server.war
</Arg>
<Arg>/myscript-form-server</Arg>
<Set name="serverClasses">
<Ref id="serverClasses" />
</Set>
<Set name="ConfigurationClasses">
<Ref id="plusConfig" />
</Set>
</New>
</Item>
<!-- hwr server -->
<Item>
<New class="org.mortbay.jetty.webapp.WebAppContext">
<Arg>./webapps/myscript-fpp-hwr-server.war</Arg>
<Arg>/myscript-form-hwr-server</Arg>
<Set name="serverClasses">
<Ref id="serverClasses" />
</Set>
<Set name="ConfigurationClasses">
<Ref id="plusConfig" />
</Set>
</New>
</Item>
</Array>
</Set>
</New>
</Set>
<Call name="addConnector">
<Arg>
<New class="org.mortbay.jetty.nio.SelectChannelConnector">
<Set name="port">8080</Set>
</New>
</Arg>
</Call>
<!-- Use the jdk 1.5 platformMBeanServer -->
<Call id="MBeanServer" class="java.lang.management.ManagementFactory"
name="getPlatformMBeanServer" />
<Get id="Container" name="container">
<Call name="addEventListener">
<Arg>
<New class="org.mortbay.management.MBeanContainer">
<Arg>
<Ref id="MBeanServer" />
</Arg>
<Call name="start" />
</New>
</Arg>
</Call>
</Get>
<!-- Setup the RMIRegistry on a specific port -->
<Call id="rmiRegistry" class="java.rmi.registry.LocateRegistry"
name="createRegistry">
<Arg type="int">2099</Arg>
</Call>
<!-- Setup the JMXConnectorServer on a specific rmi server port -->
<Call id="jmxConnectorServer" class="javax.management.remote.JMXConnectorServerFactory"
name="newJMXConnectorServer">
<Arg>
<New class="javax.management.remote.JMXServiceURL">
<Arg>service:jmx:rmi://localhost:2100/jndi/rmi://localhost:2099/jmxrmi
</Arg>
</New>
</Arg>
<Arg />
<Arg>
<Ref id="MBeanServer" />
</Arg>
<Call name="start" />
</Call>
<!--************************* -->
<!-- embbeded ActiveMQ Broker -->
<!--************************* -->
<New id="brokerService" class="org.apache.activemq.broker.BrokerService">
<Set name="brokerName">fppBrokerActiveMQ</Set>
<Set name="dataDirectoryFile"></Set>
<Call name="getSystemUsage">
<Call name="getMemoryUsage">
<Set name="limit">26428800</Set>
</Call>
<Call name="getStoreUsage">
<Set name="limit">204857600</Set>
</Call>
</Call>
<Call name="addConnector">
<Arg>nio://localhost:61615</Arg>
</Call>
<Call name="start"></Call>
</New>
<!-- ************************** -->
<!-- common fpp jndi resources -->
<!-- ************************** -->
<!-- ui debug properties -->
<New id="fpp.common-ui.velocityProperties" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>fpp/fpp.common-ui.velocityProperties</Arg>
<Arg>
<New class="java.util.Properties">
<Put name="spring.resource.loader.class">org.springframework.ui.velocity.SpringResourceLoader
</Put>
<Put name="spring.resource.loader.cache">false</Put>
<Put name="velocimacro.library.autoreload">true</Put>
</New>
</Arg>
</New>
<New id="fpp.wrapper-server.properties" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>fpp/fpp.wrapper-server.properties</Arg>
<Arg>
<New class="java.util.Properties">
<Put name="fpp.wrapper-server.instanceServiceWsdlLocation">http://localhost:8080/myscript-form-server/cxf/instance?wsdl
</Put>
<Put name="fpp.wrapper-server.formServiceWsdlLocation">http://localhost:8080/myscript-form-server/cxf/form?wsdl
</Put>
<Put name="fpp.wrapper-server.formDeprecatedServiceWsdlLocation">http://localhost:8080/myscript-form-server/cxf/formDeprecated?wsdl
</Put>
<Put name="fpp.wrapper-server.hwrResourceServiceWsdlLocation">http://localhost:8080/myscript-form-server/cxf/hwrResource?wsdl
</Put>
<Put name="fpp.wrapper-server.defaultEnvironmentName">default</Put>
<Put name="fpp.wrapper-server.defaultEnvironmentType">STANDARD</Put>
<Put name="fpp.wrapper-server.formdb.dialect">org.hibernate.dialect.SQLServerDialect</Put>
<Put name="fpp.wrapper-server.formdb.hibernate.show_sql">true</Put>
<Put name="fpp.wrapper-server.formdb.hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</Put>
<Put name="fpp.wrapper-server.formdb.hibernate.transaction.manager_lookup_class">org.hibernate.transaction.BTMTransactionManagerLookup</Put>
<Put name="fpp.wrapper-server.formdb.hibernate.cache.use_query_cache">false</Put>
<Put name="fpp.wrapper-server.formdb.hibernate.cache.use_second_level_cache">false</Put>
<Put name="fpp.wrapper-server.formdb.hibernate.cache.use_structured_cache">false</Put>
<Put name="fpp.wrapper-server.formdb.hibernate.cache.provider_class">org.hibernate.cache.NoCacheProvider</Put>
</New>
</Arg>
</New>
<!-- transaction manager - bitronix -->
<Call name="getConfiguration" class="bitronix.tm.TransactionManagerServices">
<Set name="serverId">jetty-fpp-server</Set>
<Set name="gracefulShutdownInterval">45</Set>
<Set name="logPart1Filename">btm/btm1.tlog</Set>
<Set name="logPart2Filename">btm/btm2.tlog</Set>
</Call>
<Set name="gracefulShutdown">60000</Set>
<Call name="addLifeCycle">
<Arg>
<New class="bitronix.tm.integration.jetty6.BTMLifeCycle" />
</Arg>
</Call>
<New class="org.mortbay.jetty.plus.naming.Transaction">
<Arg>
<Call name="getTransactionManager" class="bitronix.tm.TransactionManagerServices" />
</Arg>
</New>
<New class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>java:/TransactionManager</Arg>
<Arg>
<Call name="getTransactionManager" class="bitronix.tm.TransactionManagerServices" />
</Arg>
</New>
<New id="userTransactionManager" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>java:comp/TransactionManager</Arg>
<Arg>
<Call name="getTransactionManager" class="bitronix.tm.TransactionManagerServices" />
</Arg>
</New>
<New id="userTransactionManager" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>java:comp/UserTransaction</Arg>
<Arg>
<Call name="getTransactionManager" class="bitronix.tm.TransactionManagerServices" />
</Arg>
</New>
<!-- database data source -->
<New id="fppDataSource" class="bitronix.tm.resource.jdbc.PoolingDataSource">
<Set name="uniqueName">fppDataSource</Set>
<Set name="className">com.microsoft.sqlserver.jdbc.SQLServerXADataSource</Set>
<Set name="minPoolSize">0</Set>
<Set name="maxPoolSize">50</Set>
<Get name="driverProperties">
<Put name="serverName">DYHVDB01</Put>
<Put name="instanceName">ALPHA</Put>
<Put name="integratedSecurity">false</Put>
<Put name="databaseName">tdb_digipen_fpp</Put>
<Put name="user">manage_digipen</Put>
<Put name="password">5T1fte?</Put>
<!--Needed to test??<Put name="pinGlobalTxToPhysicalConnection">true</Put>-->
</Get>
<Call name="init" />
</New>
<!-- Jms connection factories -->
<New id="fppServerConnectionFactory" class="bitronix.tm.resource.jms.PoolingConnectionFactory">
<Set name="className">org.apache.activemq.ActiveMQXAConnectionFactory</Set>
<Set name="uniqueName">fppServerConnectionFactory</Set>
<Set name="minPoolSize">4</Set>
<Set name="maxPoolSize">40</Set>
<Set name="allowLocalTransactions">true</Set>
<Get name="driverProperties">
<Put name="brokerURL">nio://localhost:61615?jms.prefetchPolicy.all=50</Put>
<New class="org.apache.activemq.RedeliveryPolicy">
<Set name="maximumRedeliveries">-1</Set>
<Set name="backOffMultiplier">2</Set>
</New>
</Get>
<Call name="init" />
</New>
<!-- JMS Queues & topics -->
<New id="formNotifiationTopic" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>fpp/formNotifiationTopic</Arg>
<Arg>
<New class="org.apache.activemq.command.ActiveMQTopic">
<Arg>formNotifiationTopic</Arg>
</New>
</Arg>
</New>
<New id="fieldJmsQueue" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>fpp/fieldJmsQueue</Arg>
<Arg>
<New class="org.apache.activemq.command.ActiveMQQueue">
<Arg>fieldJmsQueue</Arg>
</New>
</Arg>
</New>
<New id="fieldNotifJmsQueue" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>fpp/fieldNotifJmsQueue</Arg>
<Arg>
<New class="org.apache.activemq.command.ActiveMQQueue">
<Arg>fieldNotifJmsQueue</Arg>
</New>
</Arg>
</New>
<New id="inkJmsQueue" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>fpp/inkJmsQueue</Arg>
<Arg>
<New class="org.apache.activemq.command.ActiveMQQueue">
<Arg>inkJmsQueue</Arg>
</New>
</Arg>
</New>
<!-- native library services -->
<New id="myscriptLicenseService" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>fpp/myscriptLicenseService</Arg>
<Arg>
<New
class="com.visionobjects.licensemanager.impl.MyscriptLicenseServiceImpl">
<Arg>localhost</Arg>
</New>
</Arg>
</New>
<!-- *********************** -->
<!-- form server properties -->
<!-- *********************** -->
<New id="fpp.form.properties" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>fpp/fpp.form.properties</Arg>
<Arg>
<New class="java.util.Properties">
<Put name="fpp.form.defaultEnvironmentName">default</Put>
<Put name="fpp.form.defaultEnvironmentType">STANDARD</Put>
<Put name="fpp.form.jbpm.job.nbexecutor">4</Put>
<Put name="fpp.form.jbpm.job.idleinterval">1000</Put>
<Put name="fpp.form.field.notif.nbconsumers">2</Put>
<Put name="fpp.form.ink.nbconsumers">2</Put>
<Put name="fpp.form.instance.instanceValidationMode">STANDARD</Put>
<Put name="fpp.form.formdb.dialect">org.hibernate.dialect.SQLServerDialect</Put>
<!--<Put name="fpp.form.formdb.hibernate.show_sql">true</Put>-->
<Put name="fpp.form.formdb.hibernate.show_sql">true</Put>
<Put name="fpp.form.formdb.hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</Put>
<Put name="fpp.form.formdb.hibernate.transaction.manager_lookup_class">org.hibernate.transaction.BTMTransactionManagerLookup
</Put>
<Put name="fpp.form.formdb.hibernate.cache.use_query_cache">false</Put>
<Put name="fpp.form.formdb.hibernate.cache.use_second_level_cache">false</Put>
<Put name="fpp.form.formdb.hibernate.cache.use_structured_cache">false</Put>
<Put name="fpp.form.formdb.hibernate.cache.provider_class">org.hibernate.cache.NoCacheProvider</Put>
<Put name="fpp.form.jbpmdb.dialect">org.hibernate.dialect.SQLServerDialect</Put>
<Put name="fpp.form.jbpmdb.hibernate.show_sql">true</Put>
<Put name="fpp.form.jbpmdb.hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</Put>
<Put name="fpp.form.jbpmdb.hibernate.transaction.manager_lookup_class">org.hibernate.transaction.BTMTransactionManagerLookup
</Put>
<Put name="fpp.form.jbpmdb.hibernate.cache.use_query_cache">false</Put>
<Put name="fpp.form.jbpmdb.hibernate.cache.use_second_level_cache">false</Put>
<Put name="fpp.form.jbpmdb.hibernate.cache.use_structured_cache">false</Put>
<Put name="fpp.form.jbpmdb.hibernate.cache.provider_class">org.hibernate.cache.NoCacheProvider</Put>
<Put name="fpp.form.scheduler.jobStore.driverDelegateClass">org.quartz.impl.jdbcjobstore.MSSQLDelegate</Put>
<Put name="fpp.form.scheduler.dataSource.driver">com.microsoft.sqlserver.jdbc.SQLServerDriver</Put>
<Put name="fpp.form.scheduler.dataSource.URL">jdbc:sqlserver://DYHVDB01\ALPHA;DatabaseName=tdb_digipen_fpp;integratedSecurity=false
</Put>
<Put name="fpp.form.scheduler.dataSource.user">manage_digipen</Put>
<Put name="fpp.form.scheduler.dataSource.password">5T1fte?</Put>
<!-- Cron Format A cron expression is a string comprised of 6 or 7 fields
separated by white space. Fields can contain any of the allowed values, along
with various combinations of the allowed special characters for that field.
The fields are as follows: Field Name Mandatory Allowed Values Allowed Special
Characters Seconds YES 0-59 , - * / Minutes YES 0-59 , - * / Hours YES 0-23
, - * / Day of month YES 1-31 , - * ? / L W Month YES 1-12 or JAN-DEC , -
* / Day of week YES 1-7 or SUN-SAT , - * ? / L # Year NO empty, 1970-2099
, - * / -->
<Put name="fpp.form.purge.moduleinfo.cron">0 0/1 * * * ?</Put>
<Put name="fpp.form.purge.instances.cron">0 0 * * * ?</Put>
<Put name="fpp.form.purge.instances.defaultcase">365</Put>
<Put name="fpp.form.purge.instances.case1">10</Put>
<Put name="fpp.form.purge.instances.case2">60</Put>
<Put name="fpp.form.purge.instances.case3">100</Put>
<Put name="fpp.form.purge.instances.case4">30</Put>
<Put name="fpp.form.purge.instances.case5">60</Put>
<Put name="fpp.form.export.cron">0 0 * * * ?</Put>
<Put name="fpp.form.export.exportpath">C:\FPP</Put>
<Put name="fpp.form.export.exportMode">REGULAR</Put>
<Put name="fpp.form.export.buildingType">INCREMENTAL</Put>
<Put name="fpp.form.export.addInformations">true</Put>
</New>
</Arg>
</New>
<New id="fppFormDbDataSource" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>jdbc/fppFormDbDataSource</Arg>
<Arg>
<Ref id="fppDataSource"></Ref>
</Arg>
</New>
<New id="fppJbpmDbDataSource" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>jdbc/fppJbpmDbDataSource</Arg>
<Arg>
<Ref id="fppDataSource" />
</Arg>
</New>
<New id="formJmsTopicConnectionFactory" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>fpp/formJmsTopicConnectionFactory</Arg>
<Arg>
<Ref id="fppServerConnectionFactory" />
</Arg>
</New>
<New id="fieldProducerJmsConnectionFactory" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>fpp/fieldProducerJmsConnectionFactory</Arg>
<Arg>
<Ref id="fppServerConnectionFactory" />
</Arg>
</New>
<New id="fieldNotifConsumerJmsConnectionFactory" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>fpp/fieldNotifConsumerJmsConnectionFactory</Arg>
<Arg>
<Ref id="fppServerConnectionFactory" />
</Arg>
</New>
<New id="inkConsumerJmsConnectionFactory" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>fpp/inkConsumerJmsConnectionFactory</Arg>
<Arg>
<Ref id="fppServerConnectionFactory" />
</Arg>
</New>
<!-- HWR SERVER -->
<New id="fpp.hwr-server.properties" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>fpp/fpp.hwr-server.properties</Arg>
<Arg>
<New class="java.util.Properties">
<Put name="fpp.hwr-server.formbroker.uri">failover:nio://localhost:61615</Put>
<Put name="fpp.hwr-server.fieldConsumers">4</Put>
<Put name="fpp.hwr-server.resourceManager.memoryUsageThreshold">262144000</Put>
<Put name="fpp.hwr-server.resourceManager.resourceCountThreshold">150</Put>
<Put name="fpp.hwr-server.resourceManager.idleTimeLimit">1800000</Put>
<Put name="fpp.hwr-server.resourceManager.timeToLive">3600000</Put>
<Put name="fpp.hwr-server.resourceManager.wakeUpInterval">100000</Put>
<Put name="fpp.hwr-server.formdb.dialect">org.hibernate.dialect.SQLServerDialect</Put>
<Put name="fpp.hwr-server.formdb.hibernate.show_sql">true</Put>
<Put name="fpp.hwr-server.formdb.hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</Put>
<Put
name="fpp.hwr-server.formdb.hibernate.transaction.manager_lookup_class">org.hibernate.transaction.BTMTransactionManagerLookup</Put>
<Put name="fpp.hwr-server.internal.dumpRecognition">false</Put>
</New>
</Arg>
</New>
<New id="myscriptHwrService" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>fpp/myscriptHwrService</Arg>
<Arg>
<New class="com.visionobjects.myscript.commons.hwr.engine.HwrEngineService">
<Set name="handwritingContextUserLimit">50</Set>
<Set name="resourceUserLimit">0</Set>
<Set name="otherObjectUserLimit">500</Set>
<Call name="doStart" />
</New>
</Arg>
</New>
<New id="fieldNotificationProducerJmsConnectionFactory" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>fpp/fieldNotificationProducerJmsConnectionFactory</Arg>
<Arg>
<Ref id="fppServerConnectionFactory" />
</Arg>
</New>
<New id="fieldConsumerJmsConnectionFactory" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>fpp/fieldConsumerJmsConnectionFactory</Arg>
<Arg>
<Ref id="fppServerConnectionFactory" />
</Arg>
</New>
<!-- wrapper -->
<New id="fppWrapperServerConnectionFactory" class="org.apache.activemq.ActiveMQConnectionFactory">
<Set name="brokerURL">nio://localhost:61615</Set>
<Set name="redeliveryPolicy">
<New class="org.apache.activemq.RedeliveryPolicy">
<Set name="maximumRedeliveries">-1</Set>
<Set name="backOffMultiplier">2</Set>
</New>
</Set>
</New>
<New id="formNotificationConsumerFactory" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>fpp/formNotificationConsumerFactory</Arg>
<Arg>
<Ref id="fppWrapperServerConnectionFactory" />
</Arg>
</New>
<New id="inkProducerJmsConnectionFactory" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>fpp/inkProducerJmsConnectionFactory</Arg>
<Arg>
<Ref id="fppWrapperServerConnectionFactory" />
</Arg>
</New>
<!-- JMX/SENSORS -->
<New id="inkJmsQueueUrl" class="java.lang.String">
<Arg>service:jmx:rmi://localhost:2100/jndi/rmi://localhost:2099/jmxrmi
</Arg>
</New>
<New id="inkJmsQueueObjectName" class="java.lang.String">
<Arg>org.apache.activemq:BrokerName=formserver.broker,Type=Queue,Destination=inkJmsQueue
</Arg>
</New>
<New id="fieldNotifJmsQueueUrl" class="java.lang.String">
<Arg>service:jmx:rmi://localhost:2100/jndi/rmi://localhost:2099/jmxrmi
</Arg>
</New>
<New id="fieldNotifJmsQueueObjectName" class="java.lang.String">
<Arg>org.apache.activemq:BrokerName=formserver.broker,Type=Queue,Destination=fieldNotifJmsQueue
</Arg>
</New>
<New id="fieldJmsQueueUrl" class="java.lang.String">
<Arg>service:jmx:rmi://localhost:2100/jndi/rmi://localhost:2099/jmxrmi
</Arg>
</New>
<New id="fieldJmsQueueObjectName" class="java.lang.String">
<Arg>org.apache.activemq:BrokerName=formserver.broker,Type=Queue,Destination=fieldJmsQueue
</Arg>
</New>
<New id="formNotifiationTopicUrl" class="java.lang.String">
<Arg>service:jmx:rmi://localhost:2100/jndi/rmi://localhost:2099/jmxrmi
</Arg>
</New>
<New id="formNotifiationTopicObjectName" class="java.lang.String">
<Arg>org.apache.activemq:BrokerName=formserver.broker,Type=Queue,Destination=formNotifiationTopic
</Arg>
</New>
<New id="server.list" class="java.util.HashMap">
<!-- InkJmsQueue -->
<Put name="WRP">
<New class="java.util.ArrayList">
<Call name="add">
<Arg>
<New class="java.lang.String">
<Arg>http://localhost:8081</Arg>
</New>
</Arg>
</Call>
<Call name="add">
<Arg>
<New class="java.lang.String">
<Arg>http://localhost:8084</Arg>
</New>
</Arg>
</Call>
</New>
</Put>
<Put name="FORM">
<New class="java.util.ArrayList">
<Call name="add">
<Arg>
<New class="java.lang.String">
<Arg>http://localhost:8080</Arg>
</New>
</Arg>
</Call>
<Call name="add">
<Arg>
<New class="java.lang.String">
<Arg>http://localhost:8084</Arg>
</New>
</Arg>
</Call>
</New>
</Put>
<Put name="HWR">
<New class="java.util.ArrayList">
<Call name="add">
<Arg>
<New class="java.lang.String">
<Arg>http://localhost:8083</Arg>
</New>
</Arg>
</Call>
<Call name="add">
<Arg>
<New class="java.lang.String">
<Arg>http://localhost:8084</Arg>
</New>
</Arg>
</Call>
</New>
</Put>
</New>
<New id="fpp.form.jmx.properties" class="java.util.HashMap">
<!-- InkJmsQueue -->
<Put name="inkJmsQueueSize">
<New class="java.util.HashMap">
<Put name="urlQueue">
<Ref id="inkJmsQueueUrl" />
</Put>
<Put name="objectName">
<Ref id="inkJmsQueueObjectName" />
</Put>
<Put name="attribute">QueueSize</Put>
</New>
</Put>
<Put name="inkJmsConsumerCount">
<New class="java.util.HashMap">
<Put name="urlQueue">
<Ref id="inkJmsQueueUrl" />
</Put>
<Put name="objectName">
<Ref id="inkJmsQueueObjectName" />
</Put>
<Put name="attribute">ConsumerCount</Put>
</New>
</Put>
<Put name="inkJmsDequeueCount">
<New class="java.util.HashMap">
<Put name="urlQueue">
<Ref id="inkJmsQueueUrl" />
</Put>
<Put name="objectName">
<Ref id="inkJmsQueueObjectName" />
</Put>
<Put name="attribute">DequeueCount</Put>
</New>
</Put>
<Put name="inkJmsAverageEnqueueTime">
<New class="java.util.HashMap">
<Put name="urlQueue">
<Ref id="inkJmsQueueUrl" />
</Put>
<Put name="objectName">
<Ref id="inkJmsQueueObjectName" />
</Put>
<Put name="attribute">AverageEnqueueTime</Put>
</New>
</Put>
<Put name="inkJmsMaxEnqueueTime">
<New class="java.util.HashMap">
<Put name="urlQueue">
<Ref id="inkJmsQueueUrl" />
</Put>
<Put name="objectName">
<Ref id="inkJmsQueueObjectName" />
</Put>
<Put name="attribute">MaxEnqueueTime</Put>
</New>
</Put>
<!--FieldNotifJmsQueue -->
<Put name="fieldNotifJmsQueueSize">
<New class="java.util.HashMap">
<Put name="urlQueue">
<Ref id="fieldNotifJmsQueueUrl" />
</Put>
<Put name="objectName">
<Ref id="fieldNotifJmsQueueObjectName" />
</Put>
<Put name="attribute">QueueSize</Put>
</New>
</Put>
<Put name="fieldNotifJmsConsumerCount">
<New class="java.util.HashMap">
<Put name="urlQueue">
<Ref id="fieldNotifJmsQueueUrl" />
</Put>
<Put name="objectName">
<Ref id="fieldNotifJmsQueueObjectName" />
</Put>
<Put name="attribute">ConsumerCount</Put>
</New>
</Put>
<Put name="fieldNotifJmsDequeueCount">
<New class="java.util.HashMap">
<Put name="urlQueue">
<Ref id="fieldNotifJmsQueueUrl" />
</Put>
<Put name="objectName">
<Ref id="fieldNotifJmsQueueObjectName" />
</Put>
<Put name="attribute">DequeueCount</Put>
</New>
</Put>
<Put name="fieldNotifJmsAverageEnqueueTime">
<New class="java.util.HashMap">
<Put name="urlQueue">
<Ref id="fieldNotifJmsQueueUrl" />
</Put>
<Put name="objectName">
<Ref id="fieldNotifJmsQueueObjectName" />
</Put>
<Put name="attribute">AverageEnqueueTime</Put>
</New>
</Put>
<Put name="fieldNotifJmsMaxEnqueueTime">
<New class="java.util.HashMap">
<Put name="urlQueue">
<Ref id="fieldNotifJmsQueueUrl" />
</Put>
<Put name="objectName">
<Ref id="fieldNotifJmsQueueObjectName" />
</Put>
<Put name="attribute">MaxEnqueueTime</Put>
</New>
</Put>
</New>
<New id="fpp.form.ui.parameters" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>fpp/fpp.form.ui.parameters</Arg>
<Arg>
<New
class="com.visionobjects.myscript.fpp.ui.parameters.impl.UIParametersServiceImpl">
<Set name="jmxProperties">
<Ref id="fpp.form.jmx.properties"></Ref>
</Set>
<Set name="serverList">
<Ref id="server.list"></Ref>
</Set>
</New>
</Arg>
</New>
</Configure>
Thanks so much in advance.
 

Hello guys,
I have been setting a production system with bitronix transaction manager, SQL server 2008, XA transactions and jetty 6. In the beginning this software was configured to run with MySQL. But one of my customer decided to move everything to MSSQL server 2008.
In that moment I was trying to get this up and running for some weeks (The configuration was completely different) and finally I got it.
The configuration with MSSQL server was running perfectly during 1 month but then from one day to other the error message I will show now appeared and I do not how to solve it. I almost read all the hints from google about this exception but nothing helped
me out.
I hope you guys can help me to find a way to solve it.
- I tried different version of the jdbc driver 3.0 and 4.0.
- I tried to export exactly the database to my localserver and it's running perfectly with the same configuration.
The problem is that I cannot reproduce the error in other place that is not the customer and at the same time I have no access to their internal database server. They installed all the XA transaction stuff (dll in binn, enable XA, and grant the permissions
for SQLXAUser), I am quite sure because it was running for one month without any problem.
I asked to the customer if anything happenend on their server (microsoft updates, machines reboot, ...) but nothing of these happened.
Also I tried this link out but did not help me.
<a href="http://social.msdn.microsoft.com/Forums/sqlserver/en-US/15c1e6f5-ec1e-4376-8f45-25e61ffc1306/the-function-start-has-failed-no-transaction-cookie-was-returned?forum=sqldataaccess">http://social.msdn.microsoft.com/Forums/sqlserver/en-US/15c1e6f5-ec1e-4376-8f45-25e61ffc1306/the-function-start-has-failed-no-transaction-cookie-was-returned?forum=sqldataaccess</a>
The exception is the following:
 [2014-05-15 14:06:08,842] INFO  3666[main] - org.mortbay.log.Slf4jLog.info(Slf4jLog.java:67) - Starting Bitronix Transaction Manager
[2014-05-15 14:06:08,951] INFO  3775[main] - org.mortbay.log.Slf4jLog.info(Slf4jLog.java:67) - Extract ./webapps/myscript-fpp-wrapper-server.war to D:\Temp\Jetty_0_0_0_0_8080_myscript.fpp.wrapper.server.war__myscript.form.wrapper.server__.bnwnn7\webapp
[2014-05-15 14:06:10,324] INFO  5148[main] - org.mortbay.log.Slf4jLog.info(Slf4jLog.java:67) - NO JSP Support for /myscript-form-wrapper-server, did not find org.apache.jasper.servlet.JspServlet
[2014-05-15 14:06:12,742] WARN  7566[main] - org.dozer.config.GlobalSettings.loadGlobalSettings(GlobalSettings.java:118) - Dozer configuration file not found: dozer.properties.  Using defaults for all Dozer global properties.
[2014-05-15 14:06:13,288] WARN  8112[main] - org.hibernate.util.JDBCExceptionReporter.logExceptions(JDBCExceptionReporter.java:100) - SQL Error: 0, SQLState: null
[2014-05-15 14:06:13,288]ERROR  8112[main] - org.hibernate.util.JDBCExceptionReporter.logExceptions(JDBCExceptionReporter.java:101) - error enlisting a JdbcConnectionHandle of a JdbcPooledConnection from datasource fppDataSource in state ACCESSIBLE with
usage count 1 wrapping SQLServerXAConnection:1 on  ProxyConnectionID:1
[2014-05-15 14:06:13,319]ERROR  8143[main] - org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:220) - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'moduleRegistration' defined in class path resource [com/visionobjects/myscript/fpp/wrapper/module-registration.xml]: Invocation of init method failed; nested exception is
org.hibernate.exception.GenericJDBCException: could not execute query
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1420)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
    at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
    at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:549)
    at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
    at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282)
    at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518)
    at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499)
    at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
    at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
    at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
    at org.mortbay.jetty.Server.doStart(Server.java:224)
    at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985)
    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.mortbay.start.Main.invokeMain(Main.java:194)
    at org.mortbay.start.Main.start(Main.java:534)
    at org.mortbay.start.Main.start(Main.java:441)
    at org.mortbay.start.Main.main(Main.java:119)
Caused by: org.hibernate.exception.GenericJDBCException: could not execute query
    at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:126)
    at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:114)
    at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
    at org.hibernate.loader.Loader.doList(Loader.java:2235)
    at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2129)
    at org.hibernate.loader.Loader.list(Loader.java:2124)
    at org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:118)
    at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1597)
    at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:306)
    at org.hibernate.impl.CriteriaImpl.uniqueResult(CriteriaImpl.java:328)
    at com.visionobjects.myscript.fpp.form.dao.impl.ModuleInfoDaoImpl.getModuleInfo(ModuleInfoDaoImpl.java:57)
    at com.visionobjects.myscript.fpp.ModuleRegistration$1.doInTransactionWithoutResult(ModuleRegistration.java:73)
    at org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:33)
    at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:130)
    at com.visionobjects.myscript.fpp.ModuleRegistration.init(ModuleRegistration.java:66)
    at com.visionobjects.myscript.fpp.ModuleRegistration.start(ModuleRegistration.java:60)
    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.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1544)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1485)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)
    ... 33 more
Caused by: java.sql.SQLException: error enlisting a JdbcConnectionHandle of a JdbcPooledConnection from datasource fppDataSource in state ACCESSIBLE with usage count 1 wrapping SQLServerXAConnection:1 on  ProxyConnectionID:1
    at bitronix.tm.resource.jdbc.JdbcConnectionHandle.enlistResource(JdbcConnectionHandle.java:86)
    at bitronix.tm.resource.jdbc.JdbcConnectionHandle.prepareStatement(JdbcConnectionHandle.java:243)
    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 bitronix.tm.resource.jdbc.BaseProxyHandlerClass.invoke(BaseProxyHandlerClass.java:63)
    at $Proxy29.prepareStatement(Unknown Source)
    at org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:534)
    at org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:452)
    at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:161)
    at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1577)
    at org.hibernate.loader.Loader.doQuery(Loader.java:696)
    at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:259)
    at org.hibernate.loader.Loader.doList(Loader.java:2232)
    ... 52 more
Caused by: bitronix.tm.internal.BitronixSystemException: cannot enlist an XAResourceHolderState with uniqueName=fppDataSource XAResource= XAResourceID:1 with XID a Bitronix XID [6A657474792D6670702D73657276657200000145FFC68B9B00000000 : 6A657474792D6670702D73657276657200000145FFC68BCA00000002],
error=XAER_RMERR
    at bitronix.tm.BitronixTransaction.enlistResource(BitronixTransaction.java:100)
    at bitronix.tm.resource.common.TransactionContextHelper.enlistInCurrentTransaction(TransactionContextHelper.java:70)
    at bitronix.tm.resource.jdbc.JdbcConnectionHandle.enlistResource(JdbcConnectionHandle.java:84)
    ... 66 more
<b>Caused by: javax.transaction.xa.XAException: com.microsoft.sqlserver.jdbc.SQLServerException: The function START: has failed. No transaction cookie was returned </b>
    at com.microsoft.sqlserver.jdbc.SQLServerXAResource.DTC_XA_Interface(SQLServerXAResource.java:642)
    at com.microsoft.sqlserver.jdbc.SQLServerXAResource.start(SQLServerXAResource.java:674)
    at bitronix.tm.internal.XAResourceHolderState.start(XAResourceHolderState.java:211)
    at bitronix.tm.internal.XAResourceManager.enlist(XAResourceManager.java:108)
    at bitronix.tm.BitronixTransaction.enlistResource(BitronixTransaction.java:93)
    ... 68 more
I think the "bold" exception is the key.
Also the configuration file of my jetty server.
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd">
<!-- developpment jetty configuration -->
<!-- launch with main class : org.mortbay.start.Main app arguments:
deploy-conf/jetty-conf/mysql/jetty-dev.xml vm arguments : -Xmx1024M -DSTOP.KEY=stop
-DSTOP.PORT=6669 to stop : - - stop -Xmx1024M -DSTOP.KEY=stop -DSTOP.PORT=6669 -->
<Configure id="Server" class="org.mortbay.jetty.Server">
<Array id="plusConfig" type="java.lang.String">
<Item>org.mortbay.jetty.webapp.WebInfConfiguration</Item>
<Item>org.mortbay.jetty.plus.webapp.EnvConfiguration</Item>
<Item>org.mortbay.jetty.plus.webapp.Configuration</Item>
<Item>org.mortbay.jetty.webapp.JettyWebXmlConfiguration</Item>
<Item>org.mortbay.jetty.webapp.TagLibConfiguration</Item>
</Array>
<Array id="serverClasses" type="java.lang.String">
</Array>
<Array id="systemClasses" type="java.lang.String">
</Array>
<!-- web apps -->
<Set name="handler">
<New id="handlerContext" class="org.mortbay.jetty.handler.ContextHandlerCollection">
<Set name="handlers">
<Array id="handlerArray" type="org.mortbay.jetty.webapp.WebAppContext">
<!-- wrapper server -->
<Item>
<New class="org.mortbay.jetty.webapp.WebAppContext">
<Arg>./webapps/myscript-fpp-wrapper-server.war</Arg>
<Arg>/myscript-form-wrapper-server</Arg>
<Set name="serverClasses">
<Ref id="serverClasses" />
</Set>
<Set name="ConfigurationClasses">
<Ref id="plusConfig" />
</Set>
</New>
</Item>
<!-- form server -->
<Item>
<New class="org.mortbay.jetty.webapp.WebAppContext">
<Arg>./webapps/myscript-fpp-form-server.war
</Arg>
<Arg>/myscript-form-server</Arg>
<Set name="serverClasses">
<Ref id="serverClasses" />
</Set>
<Set name="ConfigurationClasses">
<Ref id="plusConfig" />
</Set>
</New>
</Item>
<!-- hwr server -->
<Item>
<New class="org.mortbay.jetty.webapp.WebAppContext">
<Arg>./webapps/myscript-fpp-hwr-server.war</Arg>
<Arg>/myscript-form-hwr-server</Arg>
<Set name="serverClasses">
<Ref id="serverClasses" />
</Set>
<Set name="ConfigurationClasses">
<Ref id="plusConfig" />
</Set>
</New>
</Item>
</Array>
</Set>
</New>
</Set>
<Call name="addConnector">
<Arg>
<New class="org.mortbay.jetty.nio.SelectChannelConnector">
<Set name="port">8080</Set>
</New>
</Arg>
</Call>
<!-- Use the jdk 1.5 platformMBeanServer -->
<Call id="MBeanServer" class="java.lang.management.ManagementFactory"
name="getPlatformMBeanServer" />
<Get id="Container" name="container">
<Call name="addEventListener">
<Arg>
<New class="org.mortbay.management.MBeanContainer">
<Arg>
<Ref id="MBeanServer" />
</Arg>
<Call name="start" />
</New>
</Arg>
</Call>
</Get>
<!-- Setup the RMIRegistry on a specific port -->
<Call id="rmiRegistry" class="java.rmi.registry.LocateRegistry"
name="createRegistry">
<Arg type="int">2099</Arg>
</Call>
<!-- Setup the JMXConnectorServer on a specific rmi server port -->
<Call id="jmxConnectorServer" class="javax.management.remote.JMXConnectorServerFactory"
name="newJMXConnectorServer">
<Arg>
<New class="javax.management.remote.JMXServiceURL">
<Arg>service:jmx:rmi://localhost:2100/jndi/rmi://localhost:2099/jmxrmi
</Arg>
</New>
</Arg>
<Arg />
<Arg>
<Ref id="MBeanServer" />
</Arg>
<Call name="start" />
</Call>
<!--************************* -->
<!-- embbeded ActiveMQ Broker -->
<!--************************* -->
<New id="brokerService" class="org.apache.activemq.broker.BrokerService">
<Set name="brokerName">fppBrokerActiveMQ</Set>
<Set name="dataDirectoryFile"></Set>
<Call name="getSystemUsage">
<Call name="getMemoryUsage">
<Set name="limit">26428800</Set>
</Call>
<Call name="getStoreUsage">
<Set name="limit">204857600</Set>
</Call>
</Call>
<Call name="addConnector">
<Arg>nio://localhost:61615</Arg>
</Call>
<Call name="start"></Call>
</New>
<!-- ************************** -->
<!-- common fpp jndi resources -->
<!-- ************************** -->
<!-- ui debug properties -->
<New id="fpp.common-ui.velocityProperties" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>fpp/fpp.common-ui.velocityProperties</Arg>
<Arg>
<New class="java.util.Properties">
<Put name="spring.resource.loader.class">org.springframework.ui.velocity.SpringResourceLoader
</Put>
<Put name="spring.resource.loader.cache">false</Put>
<Put name="velocimacro.library.autoreload">true</Put>
</New>
</Arg>
</New>
<New id="fpp.wrapper-server.properties" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>fpp/fpp.wrapper-server.properties</Arg>
<Arg>
<New class="java.util.Properties">
<Put name="fpp.wrapper-server.instanceServiceWsdlLocation">http://localhost:8080/myscript-form-server/cxf/instance?wsdl
</Put>
<Put name="fpp.wrapper-server.formServiceWsdlLocation">http://localhost:8080/myscript-form-server/cxf/form?wsdl
</Put>
<Put name="fpp.wrapper-server.formDeprecatedServiceWsdlLocation">http://localhost:8080/myscript-form-server/cxf/formDeprecated?wsdl
</Put>
<Put name="fpp.wrapper-server.hwrResourceServiceWsdlLocation">http://localhost:8080/myscript-form-server/cxf/hwrResource?wsdl
</Put>
<Put name="fpp.wrapper-server.defaultEnvironmentName">default</Put>
<Put name="fpp.wrapper-server.defaultEnvironmentType">STANDARD</Put>
<Put name="fpp.wrapper-server.formdb.dialect">org.hibernate.dialect.SQLServerDialect</Put>
<Put name="fpp.wrapper-server.formdb.hibernate.show_sql">true</Put>
<Put name="fpp.wrapper-server.formdb.hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</Put>
<Put name="fpp.wrapper-server.formdb.hibernate.transaction.manager_lookup_class">org.hibernate.transaction.BTMTransactionManagerLookup</Put>
<Put name="fpp.wrapper-server.formdb.hibernate.cache.use_query_cache">false</Put>
<Put name="fpp.wrapper-server.formdb.hibernate.cache.use_second_level_cache">false</Put>
<Put name="fpp.wrapper-server.formdb.hibernate.cache.use_structured_cache">false</Put>
<Put name="fpp.wrapper-server.formdb.hibernate.cache.provider_class">org.hibernate.cache.NoCacheProvider</Put>
</New>
</Arg>
</New>
<!-- transaction manager - bitronix -->
<Call name="getConfiguration" class="bitronix.tm.TransactionManagerServices">
<Set name="serverId">jetty-fpp-server</Set>
<Set name="gracefulShutdownInterval">45</Set>
<Set name="logPart1Filename">btm/btm1.tlog</Set>
<Set name="logPart2Filename">btm/btm2.tlog</Set>
</Call>
<Set name="gracefulShutdown">60000</Set>
<Call name="addLifeCycle">
<Arg>
<New class="bitronix.tm.integration.jetty6.BTMLifeCycle" />
</Arg>
</Call>
<New class="org.mortbay.jetty.plus.naming.Transaction">
<Arg>
<Call name="getTransactionManager" class="bitronix.tm.TransactionManagerServices" />
</Arg>
</New>
<New class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>java:/TransactionManager</Arg>
<Arg>
<Call name="getTransactionManager" class="bitronix.tm.TransactionManagerServices" />
</Arg>
</New>
<New id="userTransactionManager" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>java:comp/TransactionManager</Arg>
<Arg>
<Call name="getTransactionManager" class="bitronix.tm.TransactionManagerServices" />
</Arg>
</New>
<New id="userTransactionManager" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>java:comp/UserTransaction</Arg>
<Arg>
<Call name="getTransactionManager" class="bitronix.tm.TransactionManagerServices" />
</Arg>
</New>
<!-- database data source -->
<New id="fppDataSource" class="bitronix.tm.resource.jdbc.PoolingDataSource">
<Set name="uniqueName">fppDataSource</Set>
<Set name="className">com.microsoft.sqlserver.jdbc.SQLServerXADataSource</Set>
<Set name="minPoolSize">0</Set>
<Set name="maxPoolSize">50</Set>
<Get name="driverProperties">
<Put name="serverName">DYHVDB01</Put>
<Put name="instanceName">ALPHA</Put>
<Put name="integratedSecurity">false</Put>
<Put name="databaseName">tdb_digipen_fpp</Put>
<Put name="user">manage_digipen</Put>
<Put name="password">5T1fte?</Put>
<!--Needed to test??<Put name="pinGlobalTxToPhysicalConnection">true</Put>-->
</Get>
<Call name="init" />
</New>
<!-- Jms connection factories -->
<New id="fppServerConnectionFactory" class="bitronix.tm.resource.jms.PoolingConnectionFactory">
<Set name="className">org.apache.activemq.ActiveMQXAConnectionFactory</Set>
<Set name="uniqueName">fppServerConnectionFactory</Set>
<Set name="minPoolSize">4</Set>
<Set name="maxPoolSize">40</Set>
<Set name="allowLocalTransactions">true</Set>
<Get name="driverProperties">
<Put name="brokerURL">nio://localhost:61615?jms.prefetchPolicy.all=50</Put>
<New class="org.apache.activemq.RedeliveryPolicy">
<Set name="maximumRedeliveries">-1</Set>
<Set name="backOffMultiplier">2</Set>
</New>
</Get>
<Call name="init" />
</New>
<!-- JMS Queues & topics -->
<New id="formNotifiationTopic" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>fpp/formNotifiationTopic</Arg>
<Arg>
<New class="org.apache.activemq.command.ActiveMQTopic">
<Arg>formNotifiationTopic</Arg>
</New>
</Arg>
</New>
<New id="fieldJmsQueue" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>fpp/fieldJmsQueue</Arg>
<Arg>
<New class="org.apache.activemq.command.ActiveMQQueue">
<Arg>fieldJmsQueue</Arg>
</New>
</Arg>
</New>
<New id="fieldNotifJmsQueue" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>fpp/fieldNotifJmsQueue</Arg>
<Arg>
<New class="org.apache.activemq.command.ActiveMQQueue">
<Arg>fieldNotifJmsQueue</Arg>
</New>
</Arg>
</New>
<New id="inkJmsQueue" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>fpp/inkJmsQueue</Arg>
<Arg>
<New class="org.apache.activemq.command.ActiveMQQueue">
<Arg>inkJmsQueue</Arg>
</New>
</Arg>
</New>
<!-- native library services -->
<New id="myscriptLicenseService" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>fpp/myscriptLicenseService</Arg>
<Arg>
<New
class="com.visionobjects.licensemanager.impl.MyscriptLicenseServiceImpl">
<Arg>localhost</Arg>
</New>
</Arg>
</New>
<!-- *********************** -->
<!-- form server properties -->
<!-- *********************** -->
<New id="fpp.form.properties" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>fpp/fpp.form.properties</Arg>
<Arg>
<New class="java.util.Properties">
<Put name="fpp.form.defaultEnvironmentName">default</Put>
<Put name="fpp.form.defaultEnvironmentType">STANDARD</Put>
<Put name="fpp.form.jbpm.job.nbexecutor">4</Put>
<Put name="fpp.form.jbpm.job.idleinterval">1000</Put>
<Put name="fpp.form.field.notif.nbconsumers">2</Put>
<Put name="fpp.form.ink.nbconsumers">2</Put>
<Put name="fpp.form.instance.instanceValidationMode">STANDARD</Put>
<Put name="fpp.form.formdb.dialect">org.hibernate.dialect.SQLServerDialect</Put>
<!--<Put name="fpp.form.formdb.hibernate.show_sql">true</Put>-->
<Put name="fpp.form.formdb.hibernate.show_sql">true</Put>
<Put name="fpp.form.formdb.hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</Put>
<Put name="fpp.form.formdb.hibernate.transaction.manager_lookup_class">org.hibernate.transaction.BTMTransactionManagerLookup
</Put>
<Put name="fpp.form.formdb.hibernate.cache.use_query_cache">false</Put>
<Put name="fpp.form.formdb.hibernate.cache.use_second_level_cache">false</Put>
<Put name="fpp.form.formdb.hibernate.cache.use_structured_cache">false</Put>
<Put name="fpp.form.formdb.hibernate.cache.provider_class">org.hibernate.cache.NoCacheProvider</Put>
<Put name="fpp.form.jbpmdb.dialect">org.hibernate.dialect.SQLServerDialect</Put>
<Put name="fpp.form.jbpmdb.hibernate.show_sql">true</Put>
<Put name="fpp.form.jbpmdb.hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</Put>
<Put name="fpp.form.jbpmdb.hibernate.transaction.manager_lookup_class">org.hibernate.transaction.BTMTransactionManagerLookup
</Put>
<Put name="fpp.form.jbpmdb.hibernate.cache.use_query_cache">false</Put>
<Put name="fpp.form.jbpmdb.hibernate.cache.use_second_level_cache">false</Put>
<Put name="fpp.form.jbpmdb.hibernate.cache.use_structured_cache">false</Put>
<Put name="fpp.form.jbpmdb.hibernate.cache.provider_class">org.hibernate.cache.NoCacheProvider</Put>
<Put name="fpp.form.scheduler.jobStore.driverDelegateClass">org.quartz.impl.jdbcjobstore.MSSQLDelegate</Put>
<Put name="fpp.form.scheduler.dataSource.driver">com.microsoft.sqlserver.jdbc.SQLServerDriver</Put>
<Put name="fpp.form.scheduler.dataSource.URL">jdbc:sqlserver://DYHVDB01\ALPHA;DatabaseName=tdb_digipen_fpp;integratedSecurity=false
</Put>
<Put name="fpp.form.scheduler.dataSource.user">manage_digipen</Put>
<Put name="fpp.form.scheduler.dataSource.password">5T1fte?</Put>
<!-- Cron Format A cron expression is a string comprised of 6 or 7 fields
separated by white space. Fields can contain any of the allowed values, along
with various combinations of the allowed special characters for that field.
The fields are as follows: Field Name Mandatory Allowed Values Allowed Special
Characters Seconds YES 0-59 , - * / Minutes YES 0-59 , - * / Hours YES 0-23
, - * / Day of month YES 1-31 , - * ? / L W Month YES 1-12 or JAN-DEC , -
* / Day of week YES 1-7 or SUN-SAT , - * ? / L # Year NO empty, 1970-2099
, - * / -->
<Put name="fpp.form.purge.moduleinfo.cron">0 0/1 * * * ?</Put>
<Put name="fpp.form.purge.instances.cron">0 0 * * * ?</Put>
<Put name="fpp.form.purge.instances.defaultcase">365</Put>
<Put name="fpp.form.purge.instances.case1">10</Put>
<Put name="fpp.form.purge.instances.case2">60</Put>
<Put name="fpp.form.purge.instances.case3">100</Put>
<Put name="fpp.form.purge.instances.case4">30</Put>
<Put name="fpp.form.purge.instances.case5">60</Put>
<Put name="fpp.form.export.cron">0 0 * * * ?</Put>
<Put name="fpp.form.export.exportpath">C:\FPP</Put>
<Put name="fpp.form.export.exportMode">REGULAR</Put>
<Put name="fpp.form.export.buildingType">INCREMENTAL</Put>
<Put name="fpp.form.export.addInformations">true</Put>
</New>
</Arg>
</New>
<New id="fppFormDbDataSource" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>jdbc/fppFormDbDataSource</Arg>
<Arg>
<Ref id="fppDataSource"></Ref>
</Arg>
</New>
<New id="fppJbpmDbDataSource" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>jdbc/fppJbpmDbDataSource</Arg>
<Arg>
<Ref id="fppDataSource" />
</Arg>
</New>
<New id="formJmsTopicConnectionFactory" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>fpp/formJmsTopicConnectionFactory</Arg>
<Arg>
<Ref id="fppServerConnectionFactory" />
</Arg>
</New>
<New id="fieldProducerJmsConnectionFactory" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>fpp/fieldProducerJmsConnectionFactory</Arg>
<Arg>
<Ref id="fppServerConnectionFactory" />
</Arg>
</New>
<New id="fieldNotifConsumerJmsConnectionFactory" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>fpp/fieldNotifConsumerJmsConnectionFactory</Arg>
<Arg>
<Ref id="fppServerConnectionFactory" />
</Arg>
</New>
<New id="inkConsumerJmsConnectionFactory" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>fpp/inkConsumerJmsConnectionFactory</Arg>
<Arg>
<Ref id="fppServerConnectionFactory" />
</Arg>
</New>
<!-- HWR SERVER -->
<New id="fpp.hwr-server.properties" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>fpp/fpp.hwr-server.properties</Arg>
<Arg>
<New class="java.util.Properties">
<Put name="fpp.hwr-server.formbroker.uri">failover:nio://localhost:61615</Put>
<Put name="fpp.hwr-server.fieldConsumers">4</Put>
<Put name="fpp.hwr-server.resourceManager.memoryUsageThreshold">262144000</Put>
<Put name="fpp.hwr-server.resourceManager.resourceCountThreshold">150</Put>
<Put name="fpp.hwr-server.resourceManager.idleTimeLimit">1800000</Put>
<Put name="fpp.hwr-server.resourceManager.timeToLive">3600000</Put>
<Put name="fpp.hwr-server.resourceManager.wakeUpInterval">100000</Put>
<Put name="fpp.hwr-server.formdb.dialect">org.hibernate.dialect.SQLServerDialect</Put>
<Put name="fpp.hwr-server.formdb.hibernate.show_sql">true</Put>
<Put name="fpp.hwr-server.formdb.hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</Put>
<Put
name="fpp.hwr-server.formdb.hibernate.transaction.manager_lookup_class">org.hibernate.transaction.BTMTransactionManagerLookup</Put>
<Put name="fpp.hwr-server.internal.dumpRecognition">false</Put>
</New>
</Arg>
</New>
<New id="myscriptHwrService" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>fpp/myscriptHwrService</Arg>
<Arg>
<New class="com.visionobjects.myscript.commons.hwr.engine.HwrEngineService">
<Set name="handwritingContextUserLimit">50</Set>
<Set name="resourceUserLimit">0</Set>
<Set name="otherObjectUserLimit">500</Set>
<Call name="doStart" />
</New>
</Arg>
</New>
<New id="fieldNotificationProducerJmsConnectionFactory" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>fpp/fieldNotificationProducerJmsConnectionFactory</Arg>
<Arg>
<Ref id="fppServerConnectionFactory" />
</Arg>
</New>
<New id="fieldConsumerJmsConnectionFactory" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>fpp/fieldConsumerJmsConnectionFactory</Arg>
<Arg>
<Ref id="fppServerConnectionFactory" />
</Arg>
</New>
<!-- wrapper -->
<New id="fppWrapperServerConnectionFactory" class="org.apache.activemq.ActiveMQConnectionFactory">
<Set name="brokerURL">nio://localhost:61615</Set>
<Set name="redeliveryPolicy">
<New class="org.apache.activemq.RedeliveryPolicy">
<Set name="maximumRedeliveries">-1</Set>
<Set name="backOffMultiplier">2</Set>
</New>
</Set>
</New>
<New id="formNotificationConsumerFactory" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>fpp/formNotificationConsumerFactory</Arg>
<Arg>
<Ref id="fppWrapperServerConnectionFactory" />
</Arg>
</New>
<New id="inkProducerJmsConnectionFactory" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>fpp/inkProducerJmsConnectionFactory</Arg>
<Arg>
<Ref id="fppWrapperServerConnectionFactory" />
</Arg>
</New>
<!-- JMX/SENSORS -->
<New id="inkJmsQueueUrl" class="java.lang.String">
<Arg>service:jmx:rmi://localhost:2100/jndi/rmi://localhost:2099/jmxrmi
</Arg>
</New>
<New id="inkJmsQueueObjectName" class="java.lang.String">
<Arg>org.apache.activemq:BrokerName=formserver.broker,Type=Queue,Destination=inkJmsQueue
</Arg>
</New>
<New id="fieldNotifJmsQueueUrl" class="java.lang.String">
<Arg>service:jmx:rmi://localhost:2100/jndi/rmi://localhost:2099/jmxrmi
</Arg>
</New>
<New id="fieldNotifJmsQueueObjectName" class="java.lang.String">
<Arg>org.apache.activemq:BrokerName=formserver.broker,Type=Queue,Destination=fieldNotifJmsQueue
</Arg>
</New>
<New id="fieldJmsQueueUrl" class="java.lang.String">
<Arg>service:jmx:rmi://localhost:2100/jndi/rmi://localhost:2099/jmxrmi
</Arg>
</New>
<New id="fieldJmsQueueObjectName" class="java.lang.String">
<Arg>org.apache.activemq:BrokerName=formserver.broker,Type=Queue,Destination=fieldJmsQueue
</Arg>
</New>
<New id="formNotifiationTopicUrl" class="java.lang.String">
<Arg>service:jmx:rmi://localhost:2100/jndi/rmi://localhost:2099/jmxrmi
</Arg>
</New>
<New id="formNotifiationTopicObjectName" class="java.lang.String">
<Arg>org.apache.activemq:BrokerName=formserver.broker,Type=Queue,Destination=formNotifiationTopic
</Arg>
</New>
<New id="server.list" class="java.util.HashMap">
<!-- InkJmsQueue -->
<Put name="WRP">
<New class="java.util.ArrayList">
<Call name="add">
<Arg>
<New class="java.lang.String">
<Arg>http://localhost:8081</Arg>
</New>
</Arg>
</Call>
<Call name="add">
<Arg>
<New class="java.lang.String">
<Arg>http://localhost:8084</Arg>
</New>
</Arg>
</Call>
</New>
</Put>
<Put name="FORM">
<New class="java.util.ArrayList">
<Call name="add">
<Arg>
<New class="java.lang.String">
<Arg>http://localhost:8080</Arg>
</New>
</Arg>
</Call>
<Call name="add">
<Arg>
<New class="java.lang.String">
<Arg>http://localhost:8084</Arg>
</New>
</Arg>
</Call>
</New>
</Put>
<Put name="HWR">
<New class="java.util.ArrayList">
<Call name="add">
<Arg>
<New class="java.lang.String">
<Arg>http://localhost:8083</Arg>
</New>
</Arg>
</Call>
<Call name="add">
<Arg>
<New class="java.lang.String">
<Arg>http://localhost:8084</Arg>
</New>
</Arg>
</Call>
</New>
</Put>
</New>
<New id="fpp.form.jmx.properties" class="java.util.HashMap">
<!-- InkJmsQueue -->
<Put name="inkJmsQueueSize">
<New class="java.util.HashMap">
<Put name="urlQueue">
<Ref id="inkJmsQueueUrl" />
</Put>
<Put name="objectName">
<Ref id="inkJmsQueueObjectName" />
</Put>
<Put name="attribute">QueueSize</Put>
</New>
</Put>
<Put name="inkJmsConsumerCount">
<New class="java.util.HashMap">
<Put name="urlQueue">
<Ref id="inkJmsQueueUrl" />
</Put>
<Put name="objectName">
<Ref id="inkJmsQueueObjectName" />
</Put>
<Put name="attribute">ConsumerCount</Put>
</New>
</Put>
<Put name="inkJmsDequeueCount">
<New class="java.util.HashMap">
<Put name="urlQueue">
<Ref id="inkJmsQueueUrl" />
</Put>
<Put name="objectName">
<Ref id="inkJmsQueueObjectName" />
</Put>
<Put name="attribute">DequeueCount</Put>
</New>
</Put>
<Put name="inkJmsAverageEnqueueTime">
<New class="java.util.HashMap">
<Put name="urlQueue">
<Ref id="inkJmsQueueUrl" />
</Put>
<Put name="objectName">
<Ref id="inkJmsQueueObjectName" />
</Put>
<Put name="attribute">AverageEnqueueTime</Put>
</New>
</Put>
<Put name="inkJmsMaxEnqueueTime">
<New class="java.util.HashMap">
<Put name="urlQueue">
<Ref id="inkJmsQueueUrl" />
</Put>
<Put name="objectName">
<Ref id="inkJmsQueueObjectName" />
</Put>
<Put name="attribute">MaxEnqueueTime</Put>
</New>
</Put>
<!--FieldNotifJmsQueue -->
<Put name="fieldNotifJmsQueueSize">
<New class="java.util.HashMap">
<Put name="urlQueue">
<Ref id="fieldNotifJmsQueueUrl" />
</Put>
<Put name="objectName">
<Ref id="fieldNotifJmsQueueObjectName" />
</Put>
<Put name="attribute">QueueSize</Put>
</New>
</Put>
<Put name="fieldNotifJmsConsumerCount">
<New class="java.util.HashMap">
<Put name="urlQueue">
<Ref id="fieldNotifJmsQueueUrl" />
</Put>
<Put name="objectName">
<Ref id="fieldNotifJmsQueueObjectName" />
</Put>
<Put name="attribute">ConsumerCount</Put>
</New>
</Put>
<Put name="fieldNotifJmsDequeueCount">
<New class="java.util.HashMap">
<Put name="urlQueue">
<Ref id="fieldNotifJmsQueueUrl" />
</Put>
<Put name="objectName">
<Ref id="fieldNotifJmsQueueObjectName" />
</Put>
<Put name="attribute">DequeueCount</Put>
</New>
</Put>
<Put name="fieldNotifJmsAverageEnqueueTime">
<New class="java.util.HashMap">
<Put name="urlQueue">
<Ref id="fieldNotifJmsQueueUrl" />
</Put>
<Put name="objectName">
<Ref id="fieldNotifJmsQueueObjectName" />
</Put>
<Put name="attribute">AverageEnqueueTime</Put>
</New>
</Put>
<Put name="fieldNotifJmsMaxEnqueueTime">
<New class="java.util.HashMap">
<Put name="urlQueue">
<Ref id="fieldNotifJmsQueueUrl" />
</Put>
<Put name="objectName">
<Ref id="fieldNotifJmsQueueObjectName" />
</Put>
<Put name="attribute">MaxEnqueueTime</Put>
</New>
</Put>
</New>
<New id="fpp.form.ui.parameters" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>fpp/fpp.form.ui.parameters</Arg>
<Arg>
<New
class="com.visionobjects.myscript.fpp.ui.parameters.impl.UIParametersServiceImpl">
<Set name="jmxProperties">
<Ref id="fpp.form.jmx.properties"></Ref>
</Set>
<Set name="serverList">
<Ref id="server.list"></Ref>
</Set>
</New>
</Arg>
</New>
</Configure>
Thanks so much in advance.
 

Similar Messages

  • Com.microsoft.sqlserver.jdbc.SQLServerException The TCP/IP connection  fail

    * While executing the following JDBC code with SQLServer 2005, it throws Exception
    * I dont wts wrong in my code, (Note: I have included the sqljdbc.jar in my path)
    * Pls let me know the problems in my code
    * Thanks, Following is my code and error
    My Coding :
    import java.sql.*;
    public class JDBCwithJava {
         public void work() {
               // Create a variable for the connection string.
               String connectionUrl = "jdbc:sqlserver://localhost:1433;" +"databaseName=empdb";
               // Declare the JDBC objects.
               Connection con = null;
               Statement stmt = null;
               ResultSet rs = null;
               try {
                    //Load the driver
                  Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
                  // Establish the connection.
                  con = DriverManager.getConnection(connectionUrl);
                  System.out.println("Database Successfully Connected...!");
                  //Connection Info
                  DatabaseMetaData dm = con.getMetaData();
                 System.out.println("Driver Information");
                 System.out.println("\t Driver Name: "+ dm.getDriverName());
                 System.out.println("\t Driver Version: "+ dm.getDriverVersion ());
                 System.out.println("\n Database Information ");
                 System.out.println("\t Database Name: "+ dm.getDatabaseProductName());
                 System.out.println("\t Database Version: "+ dm.getDatabaseProductVersion());
                  // Create and execute an SQL statement that returns some data.
                  String SQL = "select  * from emptable";
                  stmt = con.createStatement();
                  rs = stmt.executeQuery(SQL);
                  // Iterate through the data in the result set and display it.
                  while (rs.next()) {
                     System.out.println(rs.getInt(1) + " " + rs.getString(2));
               // Handle any errors that may have occurred.
               catch (Exception e) {
                  e.printStackTrace();
               finally {
                  if (rs != null)
                       try {
                            rs.close();
                      catch(Exception e) {
                  if (stmt != null) try { stmt.close(); } catch(Exception e) {}
                  if (con != null) try { con.close(); } catch(Exception e) {}
         public static void main(String ar[]){
              JDBCwithJava call = new JDBCwithJava();
              call.work();
    Error :
    com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host  has failed. java.net.ConnectException: Connection refused: connect
         at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(Unknown Source)
         at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(Unknown Source)
         at com.microsoft.sqlserver.jdbc.SQLServerConnection.loginWithoutFailover(Unknown Source)
         at com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(Unknown Source)
         at com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(Unknown Source)
         at java.sql.DriverManager.getConnection(Unknown Source)
         at java.sql.DriverManager.getConnection(Unknown Source)
         at JDBCwithJava.work(JDBCwithJava.java:17)
         at JDBCwithJava.main(JDBCwithJava.java:58)

    Do you have SQL Server on your box? Is it listening on port 1433?
    I also don't see any username/password information provided to the JDBC driver.

  • Com.microsoft.sqlserver.jdbc.SQLServerException Login failed for user '' ..

    Hi All,
    I have the following weird problem when trying to connect to MSSQL 2005 database using JDBC and windows authentication.
    I am using the following command:
    DriverManager.getConnection("jdbc:sqlserver://<<MACHINE IP>>:;database=<<DB NAME>>;integratedSecurity=true;","<<DOMAIN USER NAME>>","<<DOMAIN USER PASSWORD>>")and I get the following exception:
    com.microsoft.sqlserver.jdbc.SQLServerException: Login failed for user ''. The user is not associated with a trusted SQL Server connection.
    I tried to google this exception but all I can see is similar one but the exception also contain the user name. Please note that in the exception I get, the user name is not listed..
    I also checked it with various connection strings (I also tried to put the user name and password in the connection string, using the parameters 'user' and 'password'), but I always get the same result.
    Also, when I used SQL authentication I am able to connect to the SQL (after I remove the 'integratedSecurity' param).
    The SQL server is configured to work with both SQL and Windows authentication- I am able to log in to the SQL (with Microsoft SQL server management studio express) with the same windows user.
    The sqljdbc_auth.dll is also located in the class path.
    Does anyone have any idea what I am doing wrong?
    Thanks,
    Uri

    jschell wrote:
    TheAvalanche wrote:
    When I log in to the MySQL server, using windows authentication, I see that it use the same domain user I try to use via JDBC. Is there anything else I need to configure?
    You need to load a sqljdbc_auth.dll (or more specifically: point to it with -Djava.library.path or add it to the path), as is explained in the Microsoft SQL Server JDBC documentation on integrated security: [http://msdn.microsoft.com/en-us/library/ms378428.aspx]
    Interesting. One would hope that it would at least provide a different error message if it didn't find that.I don't know, I haven't used integratedSecurity much. With the DLL the JDBC driver will send the credentials of the currently logged in user to the database server, and maybe the parameter integratedSecurity=true is just an instruction to the database server to actually use those credentials for login if they are there, or maybe supplying a user name and password as the OP did will override the integratedSecurity setting and the DLL is never actually used.

  • Destroying connection that is not valid, due to the following exception [com.microsoft.sqlserver.jdbc.SQLServerException: Connection reset]

    Hi everyone, 
    I'm facing the following problem in a Server runing Linux with JBoss AS 4.2.2, JRE 1.6, and MSSQL Server 2005 with JDBC 2.0 (sqljdbc4.jar).
    The thing is: on friday morning I started up the server and everything worked fine ... next, from Friday at 6pm to Saturday at 8am nobody has used the system. 
    Then on Saturday at 8:05 got the following warning lines every time I tried to do something in my application. While it seems that everything works, after a few days the system starts to decrease their performance and malfunction, so I want to know why it
    might happen these warnings.
    I have tried to find a solution to this problem in several places but I'm not succeeding. That's why I'm writing my problem here... 
    Hope somebody can help me!
    Thanks in advance and best regards!
    Cristian.
    This is the "error" log.
    2011-06-11 08:05:29,680 WARN [org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory] Destroying connection that is not valid, due to the following exception: ConnectionID:2941
    com.microsoft.sqlserver.jdbc.SQLServerException: Connection reset
    at com.microsoft.sqlserver.jdbc.SQLServerConnection.terminate(SQLServerConnection.java:1352)
    at com.microsoft.sqlserver.jdbc.SQLServerConnection.terminate(SQLServerConnection.java:1339)
    at com.microsoft.sqlserver.jdbc.TDSChannel.read(IOBuffer.java:1654)
    at com.microsoft.sqlserver.jdbc.TDSReader.readPacket(IOBuffer.java:3694)
    at com.microsoft.sqlserver.jdbc.TDSCommand.startResponse(IOBuffer.java:5022)
    at com.microsoft.sqlserver.jdbc.SQLServerStatement.doExecuteStatement(SQLServerStatement.java:773)
    at com.microsoft.sqlserver.jdbc.SQLServerStatement$StmtExecCmd.doExecute(SQLServerStatement.java:676)
    at com.microsoft.sqlserver.jdbc.TDSCommand.execute(IOBuffer.java:4575)
    at com.microsoft.sqlserver.jdbc.SQLServerConnection.executeCommand(SQLServerConnection.java:1400)
    at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeCommand(SQLServerStatement.java:179)
    at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeStatement(SQLServerStatement.java:154)
    at com.microsoft.sqlserver.jdbc.SQLServerStatement.execute(SQLServerStatement.java:649)
    at org.jboss.resource.adapter.jdbc.CheckValidConnectionSQL.isValidConnection(CheckValidConnectionSQL.java:58)
    at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnectionFactory.isValidConnection(BaseWrapperManagedConnectionFactory.java:435)
    at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.checkValid(BaseWrapperManagedConnection.java:231)
    at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.matchManagedConnections(LocalManagedConnectionFactory.java:200)
    at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:211)
    at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:538)
    at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:341)
    at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:315)
    at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:396)
    at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:842)
    at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:88)
    at org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:69)
    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)
    And this is my mssql-ds.xml
    <local-tx-datasource>
    <jndi-name>jdbc/bpmsdb</jndi-name>
    <connection-url>jdbc:sqlserver://ipaddress:1433;DatabaseName=BPMS</connection-url>
    <driver-class>com.microsoft.sqlserver.jdbc.SQLServerDriver</driver-class>
    <user-name>user</user-name>
    <password>pwd</password>
    <min-pool-size>5</min-pool-size>
    <max-pool-size>50</max-pool-size>
    <exception-sorter-class-name>
    org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter
    </exception-sorter-class-name>
    <metadata>
    <type-mapping>MS SQLSERVER2000</type-mapping>
    </metadata>
    <new-connection-sql>select 1</new-connection-sql>
    <check-valid-connection-sql>select 1</check-valid-connection-sql>
    <idle-timeout-minutes>5</idle-timeout-minutes>
    </local-tx-datasource>

    I´m facing similar problem with Linux and SQL Server 2008 R2. I made the downgrade of JDK 1.6 from 27 to 26 (some people reporting errors when upgraded to jdk1.6_29 and rolling back is ok) but for me the error persists. At this moment we are testing with
    sqljdbc4.jar version 4.0 (released in 3/6/2012). The curious I have two equals Linux boxes and only one have presented connection reset errors.
    Thanks in advance.
    Carlos

  • SQL Server JDBC 4.0 driver: com.microsoft.sqlserver.jdbc.TDSParser: NullPointerException

    We are frequently (couple times per day) encountering this problem with SQL Server JDBC 4.0 driver:
    java.lang.NullPointerException    com.microsoft.sqlserver.jdbc.TDSParser.parse(tdsparser.java:50)    com.microsoft.sqlserver.jdbc.SQLServerCallableStatement.processBatchRemainder(SQLServerCallableStatement.java:229)com.microsoft.sqlserver.jdbc.SQLServerCallableStatement.processBatch(SQLServerCallableStatement.java:147)com.microsoft.sqlserver.jdbc.SQLServerStatement.processExecuteResults(SQLServerStatement.java:1137)com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement$PrepStmtExecCmd.processResponse(SQLServerPreparedStatement.java:357)com.microsoft.sqlserver.jdbc.TDSCommand.close(IOBuffer.java:5781)
    I was suprised I can't find anyone having similiar problems. What might be the cause?
    Would be great if driver source code would be openly available. :)
    Cheers,

    Hi Esko,
    Have you perform some action/process and then this issue occurred?
    I recommend you elaborate your issue and scenario with more detail, it will benefit for us to troubleshoot this issue.
    Regards,
    Elvis Long
    TechNet Community Support

  • SAPClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver'

    Hi,
    We are having one Scenario in which we are using JDBC as Sender Adapter , when we try to fetch data from MS SQL Server 2005 it gives an error :
    Error during database connection to the database URL 'jdbc:sqlserver://XXXXXXXXX:1433;databaseName=nbcc_test' using the JDBC driver 'com.microsoft.sqlserver.jdbc.SQLServerDriver': 'com.sap.aii.adapter.jdbc.sql.DriverManagerException: Cannot establish connection to URL 'jdbc:sqlserver://XXXXXXXXX:1433;databaseName=nbcc_test': SAPClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver'
    Even we have deployed the Java Class file for JDBC Driver but have no effect on error.
    Thanks & Regards,
    RP

    Hi Rajeev,
    Thanks for you suggetion but it giving same problem still.
    We have already deployed the JDBC file, can u just tell me which file(name) I have to deploy for MS SQL Server 2005 and how do I check whether it's uploaded properly or not.We are using PI 7.0.
    Thanks,
    RP

  • Get error from SQL AGENT: The SSIS Runtime has failed to enlist the OLE DB connection in a distributed transaction with error 0x8004D024

    I am running SQL Agent that executes an SSIS process from sql server1. The SSIS process executes its SQL/tables/sp’s  against another sql server2.
    I get an error after adding data flow tasks with transaction supported within a sequence with transaction required. The error, “The SSIS Runtime has failed to enlist the OLE DB connection in a distributed transaction with error 0x8004D024 "The transaction
    manager has disabled its support for remote/network transactions"
    Prior to adding this sequence everything was working from sql agent, and there were other sequences with oledb destinations.
    Everything works when running within SSIS Package.
    I see this article on similar issue,
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/0bfa2569-8849-4884-8f68-8edf98a9b4fe/problem-to-execute-a-package-and-tasks-with-a-certain-transactionoption-property-i-need-help?forum=sqlintegrationservices
    “I had similar issue and solved by setting the following on both the machines. Allow Remote Clients, Allow Remote Administration,
    Allow Inbound Clients, Allow Outbound Clients, and TIP are enabled in Component Services/My Computer/Properties/MSDTC/Security Configuration.”
    I don’t want to remove transaction required for the “Remove Duplicates from Staging” sequence.
    Anyone seen this?
    Greg Hanson

    DTC was running on remote computer. The problem was it was no longer accepting transactions from remote servers. This was in SSIS so I had to turn to "Transaction Supported" for all Data Flow Transactions.
    Greg Hanson

  • Screen goes black, shut the lid for a few minutes, open the lid the turn on chime comes on and the screen comes back to life. The computer itself has continued to update just no screen. After a few minutes goes black again. Is logic board going bad?

    Screen goes black, shut the lid for a few minutes, open the lid the turn on chime comes on and the screen comes back to life. The computer itself has continued to update just no screen. After a few minutes goes black again. Is logic board going bad or graphic card issue? Trying to decide if computer is worth repairing as it was made in 2007.

    It does sound like you might have a faulty video connection. See if you can make a Genius Bar appointment at your local Apple Store.

  • Hello. I am having trouble using Mobileme with microsoft oulook 2010. .The error Mobileme has stopped working . Can anybody help. ??Thanks

    Hello
    I am having trouble using Microsoft Outlook 2010. When starting Microsoft Outlook displays the error message Mobileme has stopped working. Can anybody help.
    Thanks

    Well yes, of course you are having trouble using MobileMe because MobileMe no longer exists and has not existed for the last 2 years at least.
    MobileMe has been replaced by iCloud, so you will never be able to use MobileMe because it does not exist.
    Also, I would suggest that you look more closely before you post, because you have posted this in an iPhone forum and this question has nothing to do with iPhones.  You would get more help if you posted in the correct forum.

  • Exceptions  - javax.transaction.HeuristicMixedException In Logs

    Using Oracle BPM 10.3 MP2 Enterprise Edition
    Version: 10.3.2
    Build: #100874.
    This exception is coming up in weblogic console logs.
    ####<Apr 29, 2011 8:14:52 AM CDT> <Error> <JTA> <fada1wap29> <BPM-CNM29> <BPM Directory Polling> <<anonymous>> <BEA1-1E6FEB3B248E3819C483> <> <1304082892584> <BEA-110412> <Xid=BEA1-1E6FEB3B248E3819C483(215626675),Status=Committed,HeuristicErrorCode=XA_HEURHAZ,numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since begin=0,seconds left=120,activeThread=Thread[BPM Directory Polling,5,Pooled Threads],XAServerResourceInfo[aqualogicCNM-JDBCDataSource]=(ServerResourceInfo[aqualogicCNM-JDBCDataSource]=(state=committed,assigned=BPM-CNM29),xar=aqualogicCNM-JDBCDataSource,re-Registered = false),SCInfo[bpmXprod+BPM-CNM29]=(state=committed),properties=({}),local properties=({weblogic.jdbc.jta.aqualogicCNM-JDBCDataSource=[ No XAConnection is attached to this TxInfo ]}),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=BPM-CNM29+10.128.245.238:7001+bpmXprod+t3+, XAResources={WLStore_bpmXprod__WLS_BPM-CNM29, aqualogicCNM-JDBCDataSource, weblogic.jdbc.wrapper.JTSXAResourceImpl, engineCNM-JDBCDataSource},NonXAResources={})],CoordinatorURL=BPM-CNM29+10.128.245.238:7001+bpmXprod+t3+) completed heuristically: (aqualogicCNM-JDBCDataSource, HeuristicHazard, ()) >
    ####<Apr 29, 2011 8:14:52 AM CDT> <Info> <EJB> <fada1wap29> <BPM-CNM29> <BPM Directory Polling> <<anonymous>> <> <> <1304082892588> <BEA-010227> <EJB Exception occurred during invocation from home or business: fuego.ejbengine.ejb.engine_startup_enginecnm_mjkqiy_LocalHomeImpl@11241739 threw exception: fuego.server.exception.EngineRuntimeException: Server runtime exception. An error has occurred during the commit. Details : [Caused by 1 exceptions:
    javax.transaction.HeuristicMixedException: (aqualogicCNM-JDBCDataSource, HeuristicHazard, ())
        at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:302)
        at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java:230)
        at weblogic.transaction.internal.TransactionManagerImpl.commit(TransactionManagerImpl.java:283)
        at weblogic.ejb.container.internal.usertransactioncheck.BaseUserTransactionProxy.commit(BaseUserTransactionProxy.java:28)
        at fuego.connector.impl.J2EETransactionCoordinator.commit(J2EETransactionCoordinator.java:55)
        at fuego.connector.ConnectorTransaction.commit(ConnectorTransaction.java:413)
        at fuego.transaction.TransactionAction.commit(TransactionAction.java:302)
        at fuego.transaction.TransactionAction.startBaseTransaction(TransactionAction.java:481)
        at fuego.transaction.TransactionAction.startTransaction(TransactionAction.java:551)
        at fuego.transaction.TransactionAction.start(TransactionAction.java:212)
        at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:123)
        at fuego.server.execution.DefaultEngineExecution.executeAutomaticWork(DefaultEngineExecution.java:62)
        at fuego.server.execution.EngineExecution.executeAutomaticWork(EngineExecution.java:42)
        at fuego.ejbengine.ejb.EngineStartupBean.executeItem(EngineStartupBean.java:189)
        at fuego.ejbengine.ejb.EngineStartupBean.updateFromDirectory(EngineStartupBean.java:169)
        at fuego.ejbengine.ejb.engine_startup_enginecnm_mjkqiy_ELOImpl.updateFromDirectory(engine_startup_enginecnm_mjkqiy_ELOImpl.java:365)
        at fuego.ejbengine.servlet.DirectoryPollingServlet$DirectoryPollingTask.runImpl(DirectoryPollingServlet.java:43)
        at fuego.ejbengine.servlet.AbstractSchedulerServlet$ScheduledTask.run(AbstractSchedulerServlet.java:199)
        at java.util.TimerThread.mainLoop(Timer.java:512)
        at java.util.TimerThread.run(Timer.java:462)
    And also
    weblogic.transaction.RollbackException: Could not prepare resource 'aqualogicCNM-JDBCDataSource
    [BEA][Oracle JDBC Driver]Oracle XA Error Occurred. Native Error: 24756
    at weblogic.transaction.internal.TransactionImpl.throwRollbackException(TransactionImpl.java:1818)
    at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:336)
    at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java:230)
    at weblogic.transaction.internal.TransactionManagerImpl.commit(TransactionManagerImpl.java:283)
    at weblogic.ejb.container.internal.usertransactioncheck.BaseUserTransactionProxy.commit(BaseUserTransactionProxy.java:28)
    at fuego.connector.impl.J2EETransactionCoordinator.commit(J2EETransactionCoordinator.java:55)
    at fuego.connector.ConnectorTransaction.commit(ConnectorTransaction.java:413)
    at fuego.transaction.TransactionAction.commit(TransactionAction.java:302)
    at fuego.transaction.TransactionAction.startBaseTransaction(TransactionAction.java:481)
    at fuego.transaction.TransactionAction.startTransaction(TransactionAction.java:551)
    at fuego.transaction.TransactionAction.start(TransactionAction.java:212)
    at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:123)
    at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:79)
    at fuego.server.execution.DefaultEngineExecution.executeWithoutComponentImmediate(DefaultEngineExecution.java:185)
    at fuego.server.execution.EngineExecution.executeWithoutComponentImmediate(EngineExecution.java:86)
    at fuego.server.AbstractSecureEngineImpl.getBookmarks(AbstractSecureEngineImpl.java:75)
    at fuego.ejbengine.EJBSecureEngineAdapter.getBookmarks(EJBSecureEngineAdapter.java:98)
    at fuego.ejbengine.engine_enginecnm_ljzdng_EOImpl.getBookmarks(engine_enginecnm_ljzdng_EOImpl.java:1176)
    at fuego.ejbengine.engine_enginecnm_ljzdng_EOImpl_WLSkel.invoke(Unknown Source)
    at weblogic.rmi.internal.activation.ActivatableServerRef.invoke(ActivatableServerRef.java:85)
    at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:477)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:473)
    at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: javax.transaction.xa.XAException: [BEA][Oracle JDBC Driver]Oracle XA Error Occurred. Native Error: 24756
    at weblogic.jdbcx.oracle.OracleImplXAResource.checkError(Unknown Source)
    at weblogic.jdbcx.oracle.OracleImplXAResource.prepare(Unknown Source)
    at weblogic.jdbcx.base.BaseXAResource.prepare(Unknown Source)
    at weblogic.jdbc.jta.DataSource.prepare(DataSource.java:867)
    at weblogic.transaction.internal.XAServerResourceInfo.prepare(XAServerResourceInfo.java:1277)
    at weblogic.transaction.internal.XAServerResourceInfo.prepare(XAServerResourceInfo.java:500)
    at weblogic.transaction.internal.ServerSCInfo.startPrepare(ServerSCInfo.java:380)
    at weblogic.transaction.internal.ServerTransactionImpl.localPrepare(ServerTransactionImpl.java:2581)
    at weblogic.transaction.internal.ServerTransactionImpl.globalPrepare(ServerTransactionImpl.java:2228)
    at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:270)
    ... 25 more
    <Apr 29, 2011 8:28:11 AM CDT> <Warning> <JTA> <BEA-110486> <Transaction BEA1-4C1D5A1A76393819C483 cannot complete commit processing because resource [weblogic.jdbc.wrapper.JTSXAResourceImpl] is unavailable. The transaction will be abandoned after 78,152 seconds unless all resources acknowledge the commit decision.>
    Any one faced similar issue

    Hi Tim,
    I remember that one from writing a 2pc tx manager ... I don't know when it
    happens in WL but it usually occurs in a tx manager when a series of
    resources are being committed successfully and then one fails (although it
    was already prepared for commit) so the manager has to figure out
    "heuristically" what to do with the remaining prepared resources -- should
    it commit or roll back -- and then it has to report that some were both
    (i.e. "mixed").
    Are you using 2pc ... multiple resources ... etc.?
    Peace,
    Cameron Purdy
    Tangosol Inc.
    << Tangosol Server: How Weblogic applications are customized >>
    << Download now from http://www.tangosol.com/download.jsp >>
    "Tim Ozor" <[email protected]> wrote in message
    news:3c079160$[email protected]..
    We are seeing the following exception very sporadically with WL6.1. I am
    curious as to whether anybody could provide any useful information that
    would aid in our debug.
    Thanks.
    Tim Ozor ([email protected])
    javax.transaction.HeuristicMixedException
    at
    weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTra
    nsactionImpl.java:237)
    at
    weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransaction
    Impl.java:190)
    at
    weblogic.transaction.internal.CoordinatorImpl.commit(CoordinatorImpl.java:68
    at
    weblogic.transaction.internal.CoordinatorImpl_WLSkel.invoke(UnknownSource)
    at
    weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:296)
    at
    weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:265)
    at
    weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:2
    2)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    End server side stack trace

  • Javax.transaction.SystemException: Timed out while in 'Logging' state!!!!

    Hello, we have an OracleWeblogic 10.3.2 running on a Solaris OS.
    In this AppServer we have a FullStack J2EE Application executing distributed transactions that involve 3 manageable resources:
    TxDatasource (EJB),
    NonTxDatasource with enableTwoPhaseCommit and
    JMS
    Some of the transactions are timing out while in 'Logging' state and I just cant figure out what the root cause is. As a defensive action I lowered the JTA Timeout seconds because I noticed the 'Logging' phase was taking too long and then timing out. Idea here was not to have too many threads hanging in Logging state and therefore use the JTA Timeout to overcome this problem and minimize impact.
    Below, I'm posting a few exceptions thrown in applicaiton log. Any help is very appreciated.
    ####<Aug 12, 2011 11:40:11 AM EDT> <Error> <EJB> <brzfxap1> <FefxServer> <[ACTIVE] ExecuteThread: '175' for queue: 'weblogic.kernel.Default (self-tuning)'> <JG47515> <> <> <1313163611120> <BEA-010026> <Exception occurred during commit of transaction Name=[EJB com.citicorp.fx.credit.CreditServiceBean.askCreditQuery(com.citicorp.fx.credit.data.CreditQueryRequestData)],Xid=BEA1-7DB913B4CB2B36D47CB7(1248714554),Status=Rolled back. [Reason=javax.transaction.SystemException: Timed out while in 'Logging' state],numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since begin=82,seconds left=60,XAServerResourceInfo[TWOraDS_fefx]=(ServerResourceInfo[TWOraDS_fefx]=(state=rolledback,assigned=FefxServer),xar=TWOraDS,re-Registered = false),XAServerResourceInfo[WLStore_fefx_FefxFileStore]=(ServerResourceInfo[WLStore_fefx_FefxFileStore]=(state=rolledback,assigned=FefxServer),xar=WLStore_fefx_FefxFileStore1032009487,re-Registered = false),SCInfo[fefx+FefxServer]=(state=rolledback),properties=({weblogic.transaction.name=[EJB com.citicorp.fx.credit.CreditServiceBean.askCreditQuery(com.citicorp.fx.credit.data.CreditQueryRequestData)]}),local properties=({weblogic.jdbc.jta.TWOraDS=[ No XAConnection is attached to this TxInfo ]}),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=FefxServer+169.193.4.91:8107+fefx+t3+, XAResources={WLStore_fefx_FefxFileStore, TWOraDS_fefx, WLStore_fefx__WLS_FefxServer, weblogic.jdbc.wrapper.JTSXAResourceImpl, WSATGatewayRM_FefxServer_fefx},NonXAResources={})],CoordinatorURL=FefxServer+169.193.4.91:8107+fefx+t3+): weblogic.transaction.RollbackException: Timed out while in 'Logging' state
    at weblogic.transaction.internal.TransactionImpl.throwRollbackException(TransactionImpl.java:1848)
    at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:339)
    at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java:233)
    at weblogic.ejb.container.internal.BaseRemoteObject.postInvoke1(BaseRemoteObject.java:621)
    at weblogic.ejb.container.internal.StatelessRemoteObject.postInvoke1(StatelessRemoteObject.java:60)
    at weblogic.ejb.container.internal.BaseRemoteObject.postInvokeTxRetry(BaseRemoteObject.java:441)
    at com.citicorp.fx.credit.CreditService_6w08fk_EOImpl.askCreditQuery(CreditService_6w08fk_EOImpl.java:75)
    at com.citicorp.fx.client.creditquery.QueryProcessor.handleEvent(QueryProcessor.java:77)
    at org.jac.creation.ProcessorAction.handleEvent(ProcessorAction.java:64)
    at org.jac.runtime.AbstractAction.handleSecuredEvent(AbstractAction.java:73)
    at org.jac.runtime.StateImpl.handleEvent(StateImpl.java:66)
    at org.jac.runtime.ControllerImpl.handleEvent(ControllerImpl.java:123)
    at org.jac.session.SessionImpl.handleEvent(SessionImpl.java:55)
    at org.jac.session.SessionImpl.handleEvent(SessionImpl.java:78)
    at org.jac.creation.JacImpl.handleEvent(JacImpl.java:53)
    at org.jac.runtime.JACExecutor.handleEvent(JACExecutor.java:111)
    at org.jac.runtime.JACExecutor.handleEventBySessionID(JACExecutor.java:103)
    at org.jac.http.ControllerFilter.doFilter(ControllerFilter.java:63)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at com.citicorp.fx.util.compression.CompressionFilter.doFilter(CompressionFilter.java:189)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at com.citicorp.security.web.WebLogicSiteminderAuthenticationFilter.doFilter(WebLogicSiteminderAuthenticationFilter.java:65)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3592)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: javax.transaction.SystemException: Timed out while in 'Logging' state
    at weblogic.transaction.internal.ServerTransactionImpl.wakeUp(ServerTransactionImpl.java:1797)
    at weblogic.transaction.internal.ServerTransactionManagerImpl.processTimedOutTransactions(ServerTransactionManagerImpl.java:1609)
    at weblogic.transaction.internal.TransactionManagerImpl.wakeUp(TransactionManagerImpl.java:1885)
    at weblogic.transaction.internal.ServerTransactionManagerImpl.wakeUp(ServerTransactionManagerImpl.java:1519)
    at weblogic.transaction.internal.WLSTimer.timerExpired(WLSTimer.java:35)
    at weblogic.timers.internal.TimerImpl.run(TimerImpl.java:273)
    at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
    ... 2 more
    .>
    ####<Aug 12, 2011 11:40:11 AM EDT> <Error> <EJB> <brzfxap1> <FefxServer> <[ACTIVE] ExecuteThread: '154' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1313163611119> <BEA-010026> <Exception occurred during commit of transaction Xid=BEA1-7DBB13B4CB2B36D47CB7(977835896),Status=Rolled back. [Reason=javax.transaction.SystemException: Timed out while in 'Logging' state],numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since begin=60,seconds left=60,XAServerResourceInfo[WLStore_fefx_FefxFileStore]=(ServerResourceInfo[WLStore_fefx_FefxFileStore]=(state=rolledback,assigned=FefxServer),xar=WLStore_fefx_FefxFileStore1032009487,re-Registered = false),XAServerResourceInfo[TWOraDS_fefx]=(ServerResourceInfo[TWOraDS_fefx]=(state=rolledback,assigned=FefxServer),xar=TWOraDS,re-Registered = false),SCInfo[fefx+FefxServer]=(state=rolledback),local properties=({weblogic.jdbc.jta.TWOraDS=[ No XAConnection is attached to this TxInfo ]}),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=FefxServer+169.193.4.91:8107+fefx+t3+, XAResources={WLStore_fefx_FefxFileStore, TWOraDS_fefx, WLStore_fefx__WLS_FefxServer, weblogic.jdbc.wrapper.JTSXAResourceImpl, WSATGatewayRM_FefxServer_fefx},NonXAResources={})],CoordinatorURL=FefxServer+169.193.4.91:8107+fefx+t3+): weblogic.transaction.RollbackException: Timed out while in 'Logging' state
    at weblogic.transaction.internal.TransactionImpl.throwRollbackException(TransactionImpl.java:1848)
    at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:339)
    at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java:233)
    at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:500)
    at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:371)
    at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:327)
    at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4585)
    at weblogic.jms.client.JMSSession.execute(JMSSession.java:4271)
    at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3747)
    at weblogic.jms.client.JMSSession.access$000(JMSSession.java:114)
    at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:5096)
    at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: javax.transaction.SystemException: Timed out while in 'Logging' state
    at weblogic.transaction.internal.ServerTransactionImpl.wakeUp(ServerTransactionImpl.java:1797)
    at weblogic.transaction.internal.ServerTransactionManagerImpl.processTimedOutTransactions(ServerTransactionManagerImpl.java:1609)
    at weblogic.transaction.internal.TransactionManagerImpl.wakeUp(TransactionManagerImpl.java:1885)
    at weblogic.transaction.internal.ServerTransactionManagerImpl.wakeUp(ServerTransactionManagerImpl.java:1519)
    at weblogic.transaction.internal.WLSTimer.timerExpired(WLSTimer.java:35)
    at weblogic.timers.internal.TimerImpl.run(TimerImpl.java:273)
    ... 3 more
    .>
    This is the stack trace of the thread that hangs while waiting for the lock to write in the transaction file:
    "[ACTIVE] ExecuteThread: '64' for queue: 'weblogic.kernel.Default (self-tuning)'" daemon prio=3 tid=0x000000010dea3000 nid=0x1e2 in Object.wait() [0xfffffffda03ff000]
    java.lang.Thread.State: TIMED_WAITING (on object monitor)
         at java.lang.Object.wait(Native Method)
         at weblogic.transaction.internal.ServerTransactionImpl.log(ServerTransactionImpl.java:2005)
         - locked <0xfffffffe64964b30> (a weblogic.transaction.internal.ServerTransactionImpl)
         at weblogic.transaction.internal.ServerTransactionImpl.globalPrepare(ServerTransactionImpl.java:2320)
         at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:273)
         at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java:233)
         at weblogic.ejb.container.internal.BaseRemoteObject.postInvoke1(BaseRemoteObject.java:621)
         at weblogic.ejb.container.internal.StatelessRemoteObject.postInvoke1(StatelessRemoteObject.java:60)
         at weblogic.ejb.container.internal.BaseRemoteObject.postInvokeTxRetry(BaseRemoteObject.java:441)
         at com.citicorp.fx.credit.CreditService_6w08fk_EOImpl.askCreditQuery(CreditService_6w08fk_EOImpl.java:75)
         at com.citicorp.fx.client.creditquery.QueryProcessor.handleEvent(QueryProcessor.java:77)
         at org.jac.creation.ProcessorAction.handleEvent(ProcessorAction.java:64)
         at org.jac.runtime.AbstractAction.handleSecuredEvent(AbstractAction.java:73)
         at org.jac.runtime.StateImpl.handleEvent(StateImpl.java:66)
         at org.jac.runtime.ControllerImpl.handleEvent(ControllerImpl.java:123)
         at org.jac.session.SessionImpl.handleEvent(SessionImpl.java:55)
         - locked <0xfffffffe0860e618> (a org.jac.session.SessionImpl)
         at org.jac.session.SessionImpl.handleEvent(SessionImpl.java:78)
         - locked <0xfffffffe0860e618> (a org.jac.session.SessionImpl)
         at org.jac.creation.JacImpl.handleEvent(JacImpl.java:53)
         at org.jac.runtime.JACExecutor.handleEvent(JACExecutor.java:111)
         at org.jac.runtime.JACExecutor.handleEventBySessionID(JACExecutor.java:103)
         at org.jac.http.ControllerFilter.doFilter(ControllerFilter.java:63)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at com.citicorp.fx.util.compression.CompressionFilter.doFilter(CompressionFilter.java:189)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at com.citicorp.security.web.WebLogicSiteminderAuthenticationFilter.doFilter(WebLogicSiteminderAuthenticationFilter.java:65)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3592)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Edited by: user8727499 on Aug 12, 2011 11:57 AM

    Hello, we have an OracleWeblogic 10.3.2 running on a Solaris OS.
    In this AppServer we have a FullStack J2EE Application executing distributed transactions that involve 3 manageable resources:
    TxDatasource (EJB),
    NonTxDatasource with enableTwoPhaseCommit and
    JMS
    Some of the transactions are timing out while in 'Logging' state and I just cant figure out what the root cause is. As a defensive action I lowered the JTA Timeout seconds because I noticed the 'Logging' phase was taking too long and then timing out. Idea here was not to have too many threads hanging in Logging state and therefore use the JTA Timeout to overcome this problem and minimize impact.
    Below, I'm posting a few exceptions thrown in applicaiton log. Any help is very appreciated.
    ####<Aug 12, 2011 11:40:11 AM EDT> <Error> <EJB> <brzfxap1> <FefxServer> <[ACTIVE] ExecuteThread: '175' for queue: 'weblogic.kernel.Default (self-tuning)'> <JG47515> <> <> <1313163611120> <BEA-010026> <Exception occurred during commit of transaction Name=[EJB com.citicorp.fx.credit.CreditServiceBean.askCreditQuery(com.citicorp.fx.credit.data.CreditQueryRequestData)],Xid=BEA1-7DB913B4CB2B36D47CB7(1248714554),Status=Rolled back. [Reason=javax.transaction.SystemException: Timed out while in 'Logging' state],numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since begin=82,seconds left=60,XAServerResourceInfo[TWOraDS_fefx]=(ServerResourceInfo[TWOraDS_fefx]=(state=rolledback,assigned=FefxServer),xar=TWOraDS,re-Registered = false),XAServerResourceInfo[WLStore_fefx_FefxFileStore]=(ServerResourceInfo[WLStore_fefx_FefxFileStore]=(state=rolledback,assigned=FefxServer),xar=WLStore_fefx_FefxFileStore1032009487,re-Registered = false),SCInfo[fefx+FefxServer]=(state=rolledback),properties=({weblogic.transaction.name=[EJB com.citicorp.fx.credit.CreditServiceBean.askCreditQuery(com.citicorp.fx.credit.data.CreditQueryRequestData)]}),local properties=({weblogic.jdbc.jta.TWOraDS=[ No XAConnection is attached to this TxInfo ]}),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=FefxServer+169.193.4.91:8107+fefx+t3+, XAResources={WLStore_fefx_FefxFileStore, TWOraDS_fefx, WLStore_fefx__WLS_FefxServer, weblogic.jdbc.wrapper.JTSXAResourceImpl, WSATGatewayRM_FefxServer_fefx},NonXAResources={})],CoordinatorURL=FefxServer+169.193.4.91:8107+fefx+t3+): weblogic.transaction.RollbackException: Timed out while in 'Logging' state
    at weblogic.transaction.internal.TransactionImpl.throwRollbackException(TransactionImpl.java:1848)
    at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:339)
    at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java:233)
    at weblogic.ejb.container.internal.BaseRemoteObject.postInvoke1(BaseRemoteObject.java:621)
    at weblogic.ejb.container.internal.StatelessRemoteObject.postInvoke1(StatelessRemoteObject.java:60)
    at weblogic.ejb.container.internal.BaseRemoteObject.postInvokeTxRetry(BaseRemoteObject.java:441)
    at com.citicorp.fx.credit.CreditService_6w08fk_EOImpl.askCreditQuery(CreditService_6w08fk_EOImpl.java:75)
    at com.citicorp.fx.client.creditquery.QueryProcessor.handleEvent(QueryProcessor.java:77)
    at org.jac.creation.ProcessorAction.handleEvent(ProcessorAction.java:64)
    at org.jac.runtime.AbstractAction.handleSecuredEvent(AbstractAction.java:73)
    at org.jac.runtime.StateImpl.handleEvent(StateImpl.java:66)
    at org.jac.runtime.ControllerImpl.handleEvent(ControllerImpl.java:123)
    at org.jac.session.SessionImpl.handleEvent(SessionImpl.java:55)
    at org.jac.session.SessionImpl.handleEvent(SessionImpl.java:78)
    at org.jac.creation.JacImpl.handleEvent(JacImpl.java:53)
    at org.jac.runtime.JACExecutor.handleEvent(JACExecutor.java:111)
    at org.jac.runtime.JACExecutor.handleEventBySessionID(JACExecutor.java:103)
    at org.jac.http.ControllerFilter.doFilter(ControllerFilter.java:63)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at com.citicorp.fx.util.compression.CompressionFilter.doFilter(CompressionFilter.java:189)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at com.citicorp.security.web.WebLogicSiteminderAuthenticationFilter.doFilter(WebLogicSiteminderAuthenticationFilter.java:65)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3592)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: javax.transaction.SystemException: Timed out while in 'Logging' state
    at weblogic.transaction.internal.ServerTransactionImpl.wakeUp(ServerTransactionImpl.java:1797)
    at weblogic.transaction.internal.ServerTransactionManagerImpl.processTimedOutTransactions(ServerTransactionManagerImpl.java:1609)
    at weblogic.transaction.internal.TransactionManagerImpl.wakeUp(TransactionManagerImpl.java:1885)
    at weblogic.transaction.internal.ServerTransactionManagerImpl.wakeUp(ServerTransactionManagerImpl.java:1519)
    at weblogic.transaction.internal.WLSTimer.timerExpired(WLSTimer.java:35)
    at weblogic.timers.internal.TimerImpl.run(TimerImpl.java:273)
    at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
    ... 2 more
    .>
    ####<Aug 12, 2011 11:40:11 AM EDT> <Error> <EJB> <brzfxap1> <FefxServer> <[ACTIVE] ExecuteThread: '154' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1313163611119> <BEA-010026> <Exception occurred during commit of transaction Xid=BEA1-7DBB13B4CB2B36D47CB7(977835896),Status=Rolled back. [Reason=javax.transaction.SystemException: Timed out while in 'Logging' state],numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since begin=60,seconds left=60,XAServerResourceInfo[WLStore_fefx_FefxFileStore]=(ServerResourceInfo[WLStore_fefx_FefxFileStore]=(state=rolledback,assigned=FefxServer),xar=WLStore_fefx_FefxFileStore1032009487,re-Registered = false),XAServerResourceInfo[TWOraDS_fefx]=(ServerResourceInfo[TWOraDS_fefx]=(state=rolledback,assigned=FefxServer),xar=TWOraDS,re-Registered = false),SCInfo[fefx+FefxServer]=(state=rolledback),local properties=({weblogic.jdbc.jta.TWOraDS=[ No XAConnection is attached to this TxInfo ]}),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=FefxServer+169.193.4.91:8107+fefx+t3+, XAResources={WLStore_fefx_FefxFileStore, TWOraDS_fefx, WLStore_fefx__WLS_FefxServer, weblogic.jdbc.wrapper.JTSXAResourceImpl, WSATGatewayRM_FefxServer_fefx},NonXAResources={})],CoordinatorURL=FefxServer+169.193.4.91:8107+fefx+t3+): weblogic.transaction.RollbackException: Timed out while in 'Logging' state
    at weblogic.transaction.internal.TransactionImpl.throwRollbackException(TransactionImpl.java:1848)
    at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:339)
    at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java:233)
    at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:500)
    at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:371)
    at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:327)
    at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4585)
    at weblogic.jms.client.JMSSession.execute(JMSSession.java:4271)
    at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3747)
    at weblogic.jms.client.JMSSession.access$000(JMSSession.java:114)
    at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:5096)
    at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: javax.transaction.SystemException: Timed out while in 'Logging' state
    at weblogic.transaction.internal.ServerTransactionImpl.wakeUp(ServerTransactionImpl.java:1797)
    at weblogic.transaction.internal.ServerTransactionManagerImpl.processTimedOutTransactions(ServerTransactionManagerImpl.java:1609)
    at weblogic.transaction.internal.TransactionManagerImpl.wakeUp(TransactionManagerImpl.java:1885)
    at weblogic.transaction.internal.ServerTransactionManagerImpl.wakeUp(ServerTransactionManagerImpl.java:1519)
    at weblogic.transaction.internal.WLSTimer.timerExpired(WLSTimer.java:35)
    at weblogic.timers.internal.TimerImpl.run(TimerImpl.java:273)
    ... 3 more
    .>
    This is the stack trace of the thread that hangs while waiting for the lock to write in the transaction file:
    "[ACTIVE] ExecuteThread: '64' for queue: 'weblogic.kernel.Default (self-tuning)'" daemon prio=3 tid=0x000000010dea3000 nid=0x1e2 in Object.wait() [0xfffffffda03ff000]
    java.lang.Thread.State: TIMED_WAITING (on object monitor)
         at java.lang.Object.wait(Native Method)
         at weblogic.transaction.internal.ServerTransactionImpl.log(ServerTransactionImpl.java:2005)
         - locked <0xfffffffe64964b30> (a weblogic.transaction.internal.ServerTransactionImpl)
         at weblogic.transaction.internal.ServerTransactionImpl.globalPrepare(ServerTransactionImpl.java:2320)
         at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:273)
         at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java:233)
         at weblogic.ejb.container.internal.BaseRemoteObject.postInvoke1(BaseRemoteObject.java:621)
         at weblogic.ejb.container.internal.StatelessRemoteObject.postInvoke1(StatelessRemoteObject.java:60)
         at weblogic.ejb.container.internal.BaseRemoteObject.postInvokeTxRetry(BaseRemoteObject.java:441)
         at com.citicorp.fx.credit.CreditService_6w08fk_EOImpl.askCreditQuery(CreditService_6w08fk_EOImpl.java:75)
         at com.citicorp.fx.client.creditquery.QueryProcessor.handleEvent(QueryProcessor.java:77)
         at org.jac.creation.ProcessorAction.handleEvent(ProcessorAction.java:64)
         at org.jac.runtime.AbstractAction.handleSecuredEvent(AbstractAction.java:73)
         at org.jac.runtime.StateImpl.handleEvent(StateImpl.java:66)
         at org.jac.runtime.ControllerImpl.handleEvent(ControllerImpl.java:123)
         at org.jac.session.SessionImpl.handleEvent(SessionImpl.java:55)
         - locked <0xfffffffe0860e618> (a org.jac.session.SessionImpl)
         at org.jac.session.SessionImpl.handleEvent(SessionImpl.java:78)
         - locked <0xfffffffe0860e618> (a org.jac.session.SessionImpl)
         at org.jac.creation.JacImpl.handleEvent(JacImpl.java:53)
         at org.jac.runtime.JACExecutor.handleEvent(JACExecutor.java:111)
         at org.jac.runtime.JACExecutor.handleEventBySessionID(JACExecutor.java:103)
         at org.jac.http.ControllerFilter.doFilter(ControllerFilter.java:63)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at com.citicorp.fx.util.compression.CompressionFilter.doFilter(CompressionFilter.java:189)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at com.citicorp.security.web.WebLogicSiteminderAuthenticationFilter.doFilter(WebLogicSiteminderAuthenticationFilter.java:65)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3592)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Edited by: user8727499 on Aug 12, 2011 11:57 AM

  • Javax.transaction.SystemException: Timeout during commit processing

              In my Workshop 8.1 SP2 project I have a Custom Java Control whose methods I call
              from my JPF. From that custom control I create a remote connection to a Weblogic
              6.1 Application server. I execute remote methods and get the expected objects
              back with no problem. The problem is that I cannot return that object from my
              custom control back to my jpf. As soon as the method's return statement is executed,
              the process hangs for a considerable period of time and then throws the following
              Exception:
              An error has occurred:
              Exception while commiting Tx : Name=[EJB com.bea.wlw.runtime.core.bean.SyncDispatcherBean.invoke(com.bea.wlw.runtime.core.request.Request)],Xid=BEA1-0005BF0F3E6E72419698(655489),Status=Unknown,numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds
              since begin=217,seconds left=42983,XAServerResourceInfo[BMResourceManager]=(ServerResourceInfo[BMResourceManager]=(state=new,assigned=none),xar=null),SCInfo[midway+cgServer]=(state=active),SCInfo[prdsdomain+prdsserver]=(state=active),properties=({weblogic.transaction.name=[EJB
              com.bea.wlw.runtime.core.bean.SyncDispatcherBean.invoke(com.bea.wlw.runtime.core.request.Request)]}),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=cgServer+172.23.83.174:7001+midway+t3+,
              XAResources={},NonXAResources={})],CoordinatorURL=prdsserver+172.23.4.109:7041+prdsdomain+t3+);
              nested exception is:
              javax.transaction.SystemException: Timeout during commit processing
              Start server side stack trace:
              javax.transaction.SystemException: Timeout during commit processing
              at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:243)
              at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java:189)
              at weblogic.transaction.internal.CoordinatorImpl.commit(CoordinatorImpl.java:68)
              at weblogic.transaction.internal.CoordinatorImpl_WLSkel.invoke(Unknown Source)
              at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:305)
              at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:274)
              at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:22)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              End server side stack trace
              caused by: : javax.transaction.SystemException: Timeout during commit processing
              Start server side stack trace:
              javax.transaction.SystemException: Timeout during commit processing
              at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:243)
              at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java:189)
              at weblogic.transaction.internal.CoordinatorImpl.commit(CoordinatorImpl.java:68)
              at weblogic.transaction.internal.CoordinatorImpl_WLSkel.invoke(Unknown Source)
              at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:305)
              at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:274)
              at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:22)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              End server side stack trace
              As soon as I take out RMI calls from my custom control's code, I can return any
              object I want back to my JPF. Here is the what I am thinking is happenning.
              The system that runs on Weblogic 6.1 manages its own transactions and begins a
              new transaction every time a session bean residing on that server is invoked.
              In addition, Weblogic 8.1 starts an internal transaction when the Custom Java
              Control makes a call. Could there be some kind conflict? If yes, is it possible
              to disable transactions from the Java Control?
              Thank you very much
              Alex Mayzlin
              

    Horst,
              "aa aa" <[email protected]> wrote in message news:20701457.1093414960276.JavaMail.root@jserv5...
              > we are getting the same Exception. As nobody replied to your question, it would be interesting, if you found any solution
              yourself?
              >
              > Additional info:
              > We are also getting these error messages from BEA when testing connections in pool before and after the exception:
              >
              > <20.08.2004 19.32 Uhr CEST> <Error> <JDBC> <BEA-001112> <Test "SELECT count(*) FROM invoice" set up for pool "ABCConnection Pool"
              failed with exception: "java.sql.SQLException: ORA-01591: lock held by in-doubt distributed transaction 4.47.141655".>
              Generally it's a good idea to use Oracle's system DUAL table
              for testing connections on reserve. Try to change your ABCConnection
              connection pool configuration to use DUAL as the test table
              instead of "invoice".
              Regards,
              Slava Imeshev
              

  • Javax.transaction.InvalidTransactionException: Attempt to resume an inactive transaction

    i found the following error in logs and there are two services stuck, could you please help
    Caused by :javax.transaction.InvalidTransactionException: Attempt to resume an inactive transaction: BEA1-011AFC3B17D4
    **** Error Tue Jun 25 04:14:32 GMT 2013 1372133672660 /atg/dynamo/messaging/SqlJmsProvider at weblogic.transaction.internal.TransactionManagerImpl.resume(TransactionManagerImpl.java:358)
    **** Error Tue Jun 25 04:14:32 GMT 2013 1372133672660 /atg/dynamo/messaging/SqlJmsProvider at weblogic.transaction.internal.ServerTransactionManagerImpl.resume(ServerTransactionManagerImpl.java:376)
    **** Error Tue Jun 25 04:14:32 GMT 2013 1372133672660 /atg/dynamo/messaging/SqlJmsProvider at weblogic.transaction.internal.TransactionManagerImpl.resume(TransactionManagerImpl.java:342)
    **** Error Tue Jun 25 04:14:32 GMT 2013 1372133672660 /atg/dynamo/messaging/SqlJmsProvider at atg.dtm.TransactionManagerWrapper.resume(TransactionManagerWrapper.java:396)
    **** Error Tue Jun 25 04:14:32 GMT 2013 1372133672660 /atg/dynamo/messaging/SqlJmsProvider at atg.dtm.TransactionDemarcation.end(TransactionDemarcation.java:584)
    **** Error Tue Jun 25 04:14:32 GMT 2013 1372133672660 /atg/dynamo/messaging/SqlJmsProvider at atg.dtm.TransactionDemarcation.end(TransactionDemarcation.java:618)
    **** Error Tue Jun 25 04:14:32 GMT 2013 1372133672660 /atg/dynamo/messaging/SqlJmsProvider at atg.dms.sql.SqlTopicManager.resetEntries(SqlTopicManager.java:1468)
    **** Error Tue Jun 25 04:14:32 GMT 2013 1372133672660 /atg/dynamo/messaging/SqlJmsProvider at atg.dms.sql.SqlTopicSession.getDurableSubscriberID(SqlTopicSession.java:541)
    **** Error Tue Jun 25 04:14:32 GMT 2013 1372133672660 /atg/dynamo/messaging/SqlJmsProvider at atg.dms.sql.SqlTopicSession.createDurableSubscriber(SqlTopicSession.java:317)
    **** Error
    Tue Jun 25 04:14:32 GMT 2013
    1372133672660
    /atg/dynamo/messaging/SqlJmsProvider
    at atg.dms.patchbay.ConsumerInitializer.getInitializedConsumer(ConsumerInitializer.java:112)
    **** Error
    Tue Jun 25 04:14:32 GMT 2013
    1372133672660
    /atg/dynamo/messaging/SqlJmsProvider
    at atg.dms.patchbay.InputDestination.initializeInput(InputDestination.java:292)
    **** Error
    Tue Jun 25 04:14:32 GMT 2013
    1372133672660
    /atg/dynamo/messaging/SqlJmsProvider
    at atg.dms.patchbay.InputPort.initializeInputs(InputPort.java:140)
    **** Error
    Tue Jun 25 04:14:32 GMT 2013
    1372133672660
    /atg/dynamo/messaging/SqlJmsProvider
    at atg.dms.patchbay.ElementManager.initializeInputs(ElementManager.java:200)
    **** Error
    Tue Jun 25 04:14:32 GMT 2013
    1372133672660
    /atg/dynamo/messaging/SqlJmsProvider
    at atg.dms.patchbay.PatchBayManager.initializeInputs(PatchBayManager.java:1928)
    **** Error
    Tue Jun 25 04:14:32 GMT 2013
    1372133672660
    /atg/dynamo/messaging/SqlJmsProvider
    at atg.dms.patchbay.PatchBayManager.doStartService(PatchBayManager.java:583)
    **** Error
    Tue Jun 25 04:14:32 GMT 2013
    1372133672660
    /atg/dynamo/messaging/SqlJmsProvider
    at atg.nucleus.GenericService.startService(GenericService.java:496)
    **** Error
    Tue Jun 25 04:14:32 GMT 2013
    1372133672660
    /atg/dynamo/messaging/SqlJmsProvider
    at atg.nucleus.NucleusNameResolver.startService(NucleusNameResolver.java:1385)
    **** Error
    Tue Jun 25 04:14:32 GMT 2013
    1372133672660
    /atg/dynamo/messaging/SqlJmsProvider
    at atg.nucleus.NucleusNameResolver.configureAndStartService(NucleusNameResolver.java:1133)
    **** Error
    Tue Jun 25 04:14:32 GMT 2013
    1372133672660
    /atg/dynamo/messaging/SqlJmsProvider
    at atg.nucleus.NucleusNameResolver.createFromName(NucleusNameResolver.java:787)
    **** Error
    Tue Jun 25 04:14:32 GMT 2013
    1372133672660
    /atg/dynamo/messaging/SqlJmsProvider
    at atg.nucleus.NucleusNameResolver.createFromName(NucleusNameResolver.java:569)
    **** Error
    Tue Jun 25 04:14:32 GMT 2013
    1372133672660
    /atg/dynamo/messaging/SqlJmsProvider
    at atg.nucleus.NucleusNameResolver.createFromName(NucleusNameResolver.java:550)
    **** Error
    Tue Jun 25 04:14:32 GMT 2013
    1372133672660
    /atg/dynamo/messaging/SqlJmsProvider
    at atg.nucleus.NucleusNameResolver.resolveName(NucleusNameResolver.java:394)
    **** Error
    Tue Jun 25 04:14:32 GMT 2013
    1372133672660
    /atg/dynamo/messaging/SqlJmsProvider
    at atg.nucleus.NucleusNameResolver.resolveName(NucleusNameResolver.java:1051)
    **** Error
    Tue Jun 25 04:14:32 GMT 2013
    1372133672660
    /atg/dynamo/messaging/SqlJmsProvider
    at atg.nucleus.ConfigurationRefArray.getValue(ConfigurationRefArray.java:146)
    **** Error
    Tue Jun 25 04:14:32 GMT 2013
    1372133672660
    /atg/dynamo/messaging/SqlJmsProvider
    at atg.nucleus.SimpleComponentState.setBeanProperty(SimpleComponentState.java:357)
    **** Error
    Tue Jun 25 04:14:32 GMT 2013
    1372133672660
    /atg/dynamo/messaging/SqlJmsProvider
    at atg.nucleus.SimpleConfigurationState.saveToBean(SimpleConfigurationState.java:218)

    I guess the above error is during server start up.
    Increase the transaction timeout of weblogic server.
    Peace
    Shaik

  • Com.microsoft.jdbc.sqlserver.SQLServerDriver No ResultSet set was produced.

    While executing a stored procedure which returns an integer value is giving the following Exception.
    java.sql.SQLException: [Microsoft][SQLServer JDBC Driver]No ResultSet set was produced.
    fdgfgdfgfdgfdgfdgfdg com.microsoft.jdbc.sqlserver.SQLServerDriver@639a3e
    try
    Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
         catch(Exception e)
              System.out.println(e);
         try
    Connection con = DriverManager.getConnection
    ("jdbc:microsoft:sqlserver://servername:1433","TestUser","password");
    java.sql.CallableStatement callablestatement1 = connection.prepareCall("{call QUESTION_MASTER_Add(?)}");
    callablestatement1.setString(1, s);
    callablestatement1.execute();
    ResultSet resultset = callablestatement1.getResultSet();
    The result set returned is always null.
    But if I use sun.Jdbc.Odbc driver it works.
    Any Idea?

    Try first to call getNextResultSet() method and than read from resultset...i don't have a loginc exp..but seems ot me is working

  • Specified cast is not valid. (Microsoft.SqlServer.Smo) - degradation of v11

    I have Sql management studio 2014 SP1 and im working with my Azure SQL Databases.
    Previously all my databases and servers were on Sql Server 11.0 and thing were working fine, until a couple of days ago; 1 database on a server started throwing the specified cast is not valid error when you try to use management studio to Script table as.....
    and today all (3) of my databases on (different) servers are throwing that error 
    Earlier today I upgraded 1 of the servers to the latest azure sql database 12.0.2000.8 (it took a while since it can take up to 24 hours); and can verify that the same script table as... or any management studio function that will generate scripts, like
    Generate Scripts task does not throw this error.
    The issue with v11 started happening a few days ago and is now on all my v11 databases; management studio will not generate scripts.,  wanted to submit this as a bug., but there is no easier way to do so.
    screenshots below.
    error dump:
    ===================================
    Specified cast is not valid. (Microsoft.SqlServer.Smo)
    Program Location:
       at Microsoft.SqlServer.Management.Smo.Table.Microsoft.SqlServer.Management.Smo.IPropertyDataDispatch.SetPropertyValue(Int32 index, Object value)
       at Microsoft.SqlServer.Management.Smo.PropertyDispatcher.SetValue(Int32 index, Object value)
       at Microsoft.SqlServer.Management.Smo.PropertyCollection.SetValue(Int32 index, Object value)
       at Microsoft.SqlServer.Management.Smo.SqlSmoObject.AddObjectPropsFromDataReader(IDataReader reader, Boolean skipIfDirty, Int32 startColIdx, Int32 endColIdx)
       at Microsoft.SqlServer.Management.Smo.SqlSmoObject.ImplInitialize(String[] fields, OrderBy[] orderby)
       at Microsoft.SqlServer.Management.Smo.SqlSmoObject.OnPropertyMissing(String propname, Boolean useDefaultValue)
       at Microsoft.SqlServer.Management.Smo.PropertyCollection.RetrieveProperty(Int32 index, Boolean useDefaultOnMissingValue)
       at Microsoft.SqlServer.Management.Smo.PropertyCollection.GetPropertyObject(Int32 index)
       at Microsoft.SqlServer.Management.Smo.SqlSmoObject.GetPropertyOptional(String propName)
       at Microsoft.SqlServer.Management.Smo.Column.EmbedDefaultConstraints()
       at Microsoft.SqlServer.Management.Smo.Column.GetPropagateInfo(PropagateAction action)
       at Microsoft.SqlServer.Management.Smo.SqlSmoObject.GetPropagateInfoForDiscovery(PropagateAction action)
       at Microsoft.SqlServer.Management.Smo.SmoDependencyDiscoverer.GetScriptableChildren(List`1 propInfoList, PropagateAction propagateAction)
       at Microsoft.SqlServer.Management.Smo.SmoDependencyDiscoverer.SfcChildrenDiscovery(HashSet`1 discoveredUrns)
       at Microsoft.SqlServer.Management.Smo.SmoDependencyDiscoverer.Discover(IEnumerable`1 urns)
       at Microsoft.SqlServer.Management.Smo.ScriptMaker.Discover(IEnumerable`1 urns)
       at Microsoft.SqlServer.Management.Smo.ScriptMaker.DiscoverOrderScript(IEnumerable`1 urns)
       at Microsoft.SqlServer.Management.Smo.ScriptMaker.ScriptWorker(List`1 urns, ISmoScriptWriter writer)
       at Microsoft.SqlServer.Management.Smo.ScriptMaker.Script(Urn[] urns, ISmoScriptWriter writer)
       at Microsoft.SqlServer.Management.Smo.ScriptMaker.Script(Urn[] urns)
       at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.ScriptGenerator.ScriptCreate(SqlTextWriter sqlwriter, Server server, Urn[] urns, SqlScriptOptions options)
       at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.ScriptNodeActionContext.Script(SqlTextWriter writer)
       at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.SqlScriptMenu.OnScriptItemClick(Object sender, EventArgs e)

    I'm also running into this exact issue with V11 and SQL Server Management Studio -- table "Generate Create Script" fails with "Specified
    cast is not valid. (Microsoft.SqlServer.Smo)". This just started happening recently with V11 and doesn't manifest with V12. I'm running SSMS with latest hotifxes (CU6 I believe). I don't have the option of an immediate move to V12.
    Microsoft SQL Server Management Studio 12.0.2480.0
    Microsoft Analysis Services Client Tools 12.0.2480.0
    Microsoft Data Access Components (MDAC) 6.3.9600.16384
    Microsoft MSXML 3.0 6.0 
    Microsoft Internet Explorer 9.11.9600.17728
    Microsoft .NET Framework 4.0.30319.34014
    Operating System 6.3.9600

Maybe you are looking for