Bug 1181715 - ManagedConnectionFactory fails to lookup the datasource because it is not yet started
Summary: ManagedConnectionFactory fails to lookup the datasource because it is not yet...
Keywords:
Status: CLOSED DUPLICATE of bug 1067916
Alias: None
Product: JBoss Data Grid 6
Classification: JBoss
Component: Server
Version: 6.4.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 6.5.0
Assignee: Tristan Tarrant
QA Contact: Martin Gencur
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-01-13 16:13 UTC by Jakub Markos
Modified: 2015-04-15 12:46 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-04-15 12:46:46 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
server logs (1.16 MB, application/zip)
2015-01-13 16:13 UTC, Jakub Markos
no flags Details
server config (18.76 KB, application/xml)
2015-01-13 16:13 UTC, Jakub Markos
no flags Details

Description Jakub Markos 2015-01-13 16:13:01 UTC
Created attachment 979666 [details]
server logs

In 6.4.0.CR1 the jdbc tests  (previously the jdbc tests weren't running because of a different issue, so this is not necessarily new) sometimes fail (like 1/5, found only on rhel7/window) because of this error:

ERROR [org.infinispan.persistence.jdbc.connectionfactory.ManagedConnectionFactory] (MSC service thread 1-2) ISPN008016: Could not lookup connection with datasource java:jboss/datasources/JdbcDS: javax.naming.NameNotFoundException: Error looking up datasources/JdbcDS, service service jboss.naming.context.java.jboss.datasources.JdbcDS is not started

From the logs the datasource is not bounded at the time infinispan tries to look it up:
10:39:35,203 ERROR [org.infinispan.persistence.jdbc.connectionfactory.ManagedConnectionFactory] (MSC service thread 1-2) ISPN008016: Could not lookup connection with datasource java:jboss/datasources/JdbcDS: javax.naming.NameNotFoundException: Error looking up datasources/JdbcDS, service service jboss.naming.context.java.jboss.datasources.JdbcDS is not started

10:39:35,354 TRACE [org.jboss.as.naming] (MSC service thread 1-1) Bound resource datasources/JdbcDS into naming store org.jboss.as.naming.WritableServiceBasedNamingStore@3ea4be02 (service name service jboss.naming.context.java.jboss.datasources.JdbcDS)
10:39:35,376 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-1) JBAS010400: Bound data source [java:jboss/datasources/JdbcDS]

Attached are the logs from a failed/notfailed runs. To reproduce, start h2:

java -cp h2-1.4.180.redhat-3.jar org.h2.tools.Server  -tcp -tcpPort 9092 -tcpAllowOthers

and then start the server with the attached config.

Comment 1 Jakub Markos 2015-01-13 16:13:29 UTC
Created attachment 979667 [details]
server config

Comment 3 Tristan Tarrant 2015-01-14 14:08:30 UTC
We need to check if there is an existing issue with EAP

Comment 4 Richa 2015-04-15 12:46:46 UTC

*** This bug has been marked as a duplicate of bug 1067916 ***


Note You need to log in before you can comment on or make changes to this bug.