Hibernate 5.3.6/7 upgrade causes IJ000453: Unable to get managed connection for java:/XA_Datasource
We have an existing application running on Java 8, Wildfly 10, Hibernate 5.0.10 and Spring 4.3.11.
We have upgraded the system to Java 10 and Wildfly 14 and everything as expected.
But when we tried upgrading Hibernate 5.3.6/7, we are facing issues in database connections.
we have tried increasing connection pool size and adding few hibernate properties, but still the same issue
<min-pool-size>100</min-pool-size>
<max-pool-size>300</max-pool-size>
<timeout>
<idle-timeout-minutes>2</idle-timeout-minutes>
<blocking-timeout-millis>150000</blocking-timeout-millis>
</timeout>
<prop key="hibernate.connection.initial_pool_size">10</prop>
<prop key="hibernate.connection.pool_size">50</prop>
<prop key="hibernate.connection.pool_validation_interval">100</prop>
We are using JTA transaction
<property name="hibernateProperties">
<props>
<prop key="hibernate.current_session_context_class">jta</prop>
<prop key="hibernate.transaction.coordinator_class">jta</prop>
<prop key="hibernate.transaction.jta.platform">JBossAS</prop>
<prop key="hibernate.dialect">org.hibernate.dialect.Oracle10gDialect</prop>
<prop key="hibernate.show_sql">true</prop>
<prop key="hibernate.connection.handling_mode">DELAYED_ACQUISITION_AND_RELEASE_AFTER_STATEMENT</prop>
<prop key="hibernate.jta.prefer_user_transaction">true</prop>
<prop key="hibernate.jta.allowTransactionAccess">true</prop>
<prop key="hibernate.transaction.jta.platform_resolver">org.hibernate.engine.transaction.jta.platform.internal.StandardJtaPlatformResolver</prop>
</props>
</property>
Any help is appreciated, Thanks
java hibernate persistence
add a comment |
We have an existing application running on Java 8, Wildfly 10, Hibernate 5.0.10 and Spring 4.3.11.
We have upgraded the system to Java 10 and Wildfly 14 and everything as expected.
But when we tried upgrading Hibernate 5.3.6/7, we are facing issues in database connections.
we have tried increasing connection pool size and adding few hibernate properties, but still the same issue
<min-pool-size>100</min-pool-size>
<max-pool-size>300</max-pool-size>
<timeout>
<idle-timeout-minutes>2</idle-timeout-minutes>
<blocking-timeout-millis>150000</blocking-timeout-millis>
</timeout>
<prop key="hibernate.connection.initial_pool_size">10</prop>
<prop key="hibernate.connection.pool_size">50</prop>
<prop key="hibernate.connection.pool_validation_interval">100</prop>
We are using JTA transaction
<property name="hibernateProperties">
<props>
<prop key="hibernate.current_session_context_class">jta</prop>
<prop key="hibernate.transaction.coordinator_class">jta</prop>
<prop key="hibernate.transaction.jta.platform">JBossAS</prop>
<prop key="hibernate.dialect">org.hibernate.dialect.Oracle10gDialect</prop>
<prop key="hibernate.show_sql">true</prop>
<prop key="hibernate.connection.handling_mode">DELAYED_ACQUISITION_AND_RELEASE_AFTER_STATEMENT</prop>
<prop key="hibernate.jta.prefer_user_transaction">true</prop>
<prop key="hibernate.jta.allowTransactionAccess">true</prop>
<prop key="hibernate.transaction.jta.platform_resolver">org.hibernate.engine.transaction.jta.platform.internal.StandardJtaPlatformResolver</prop>
</props>
</property>
Any help is appreciated, Thanks
java hibernate persistence
add a comment |
We have an existing application running on Java 8, Wildfly 10, Hibernate 5.0.10 and Spring 4.3.11.
We have upgraded the system to Java 10 and Wildfly 14 and everything as expected.
But when we tried upgrading Hibernate 5.3.6/7, we are facing issues in database connections.
we have tried increasing connection pool size and adding few hibernate properties, but still the same issue
<min-pool-size>100</min-pool-size>
<max-pool-size>300</max-pool-size>
<timeout>
<idle-timeout-minutes>2</idle-timeout-minutes>
<blocking-timeout-millis>150000</blocking-timeout-millis>
</timeout>
<prop key="hibernate.connection.initial_pool_size">10</prop>
<prop key="hibernate.connection.pool_size">50</prop>
<prop key="hibernate.connection.pool_validation_interval">100</prop>
We are using JTA transaction
<property name="hibernateProperties">
<props>
<prop key="hibernate.current_session_context_class">jta</prop>
<prop key="hibernate.transaction.coordinator_class">jta</prop>
<prop key="hibernate.transaction.jta.platform">JBossAS</prop>
<prop key="hibernate.dialect">org.hibernate.dialect.Oracle10gDialect</prop>
<prop key="hibernate.show_sql">true</prop>
<prop key="hibernate.connection.handling_mode">DELAYED_ACQUISITION_AND_RELEASE_AFTER_STATEMENT</prop>
<prop key="hibernate.jta.prefer_user_transaction">true</prop>
<prop key="hibernate.jta.allowTransactionAccess">true</prop>
<prop key="hibernate.transaction.jta.platform_resolver">org.hibernate.engine.transaction.jta.platform.internal.StandardJtaPlatformResolver</prop>
</props>
</property>
Any help is appreciated, Thanks
java hibernate persistence
We have an existing application running on Java 8, Wildfly 10, Hibernate 5.0.10 and Spring 4.3.11.
We have upgraded the system to Java 10 and Wildfly 14 and everything as expected.
But when we tried upgrading Hibernate 5.3.6/7, we are facing issues in database connections.
we have tried increasing connection pool size and adding few hibernate properties, but still the same issue
<min-pool-size>100</min-pool-size>
<max-pool-size>300</max-pool-size>
<timeout>
<idle-timeout-minutes>2</idle-timeout-minutes>
<blocking-timeout-millis>150000</blocking-timeout-millis>
</timeout>
<prop key="hibernate.connection.initial_pool_size">10</prop>
<prop key="hibernate.connection.pool_size">50</prop>
<prop key="hibernate.connection.pool_validation_interval">100</prop>
We are using JTA transaction
<property name="hibernateProperties">
<props>
<prop key="hibernate.current_session_context_class">jta</prop>
<prop key="hibernate.transaction.coordinator_class">jta</prop>
<prop key="hibernate.transaction.jta.platform">JBossAS</prop>
<prop key="hibernate.dialect">org.hibernate.dialect.Oracle10gDialect</prop>
<prop key="hibernate.show_sql">true</prop>
<prop key="hibernate.connection.handling_mode">DELAYED_ACQUISITION_AND_RELEASE_AFTER_STATEMENT</prop>
<prop key="hibernate.jta.prefer_user_transaction">true</prop>
<prop key="hibernate.jta.allowTransactionAccess">true</prop>
<prop key="hibernate.transaction.jta.platform_resolver">org.hibernate.engine.transaction.jta.platform.internal.StandardJtaPlatformResolver</prop>
</props>
</property>
Any help is appreciated, Thanks
java hibernate persistence
java hibernate persistence
edited Nov 16 '18 at 20:23
Anil Kumar
asked Nov 13 '18 at 12:33
Anil KumarAnil Kumar
12
12
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53281097%2fhibernate-5-3-6-7-upgrade-causes-ij000453-unable-to-get-managed-connection-for%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53281097%2fhibernate-5-3-6-7-upgrade-causes-ij000453-unable-to-get-managed-connection-for%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown