Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-2275

StackOverflowError on DataSource resource injection

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Out of Date
    • 8.0.0.Beta1
    • None
    • Naming
    • None

    Description

          @Resource(name="java:comp/DefaultDataSource")
          public DataSource ds;
      

      leads to

      10:59:21,901 INFO  [org.jboss.osgi.framework] (MSC service thread 1-3) JBOSGI011001: Bundle installed: resource-injection.jar:0.0.0
      10:59:21,937 INFO  [org.jboss.as.arquillian] (MSC service thread 1-3) Arquillian deployment detected: ArquillianConfig[service=jboss.arquillian.config."resource-injection.jar",unit=resource-injection.jar,tests=[org.jboss.test.osgi.example.resource.ResourceInjectionTestCase]]
      10:59:21,993 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC000001: Failed to start service jboss.deployment.unit."resource-injection.jar".Activate: org.jboss.msc.service.StartException in service jboss.deployment.unit."resource-injection.jar".Activate: Failed to start service
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1900) [jboss-msc-1.2.0.Beta2.jar:1.2.0.Beta2]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_25]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_25]
      	at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_25]
      Caused by: java.lang.StackOverflowError
      	at java.util.Vector.<init>(Vector.java:127) [rt.jar:1.7.0_25]
      	at java.util.Vector.<init>(Vector.java:144) [rt.jar:1.7.0_25]
      	at java.util.Vector.<init>(Vector.java:153) [rt.jar:1.7.0_25]
      	at javax.naming.NameImpl.<init>(NameImpl.java:273) [rt.jar:1.7.0_25]
      	at javax.naming.NameImpl.<init>(NameImpl.java:277) [rt.jar:1.7.0_25]
      	at javax.naming.CompositeName.<init>(CompositeName.java:231) [rt.jar:1.7.0_25]
      	at org.jboss.as.naming.util.NameParser.parse(NameParser.java:49)
      	at org.jboss.as.naming.NamingContext.parseName(NamingContext.java:496)
      	at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:188)
      	at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:184)
      	at org.jboss.as.naming.deployment.ContextNames$BindInfo$1$1.getReference(ContextNames.java:302)
      	at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:140)
      	at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:81)
      	at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:202)
      	at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:188)
      	at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:184)
      	at org.jboss.as.naming.deployment.ContextNames$BindInfo$1$1.getReference(ContextNames.java:302)
      	at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:140)
      	at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:81)
      	at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:202)
      	at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:188)
      	at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:184)
      	at org.jboss.as.naming.deployment.ContextNames$BindInfo$1$1.getReference(ContextNames.java:302)
      	at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:140)
      	at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:81)
      

      Attachments

        Activity

          People

            tdiesler@redhat.com Thomas Diesler
            tdiesler@redhat.com Thomas Diesler
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: