Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-1187

Improve error message when "Singleton is not set"

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 1.2.0.Beta1, 2.0.0.Beta1
    • 2.0.0.Alpha3
    • Weld SPI
    • None

      Recommend new error message as a hint: "Singleton is not set. Is your Thread.currentThread().getContextClassLoader() set correctly?"

          Exception in thread "org.jboss.forge:main" java.lang.IllegalStateException: Singleton is not set
          at org.jboss.weld.bootstrap.api.helpers.IsolatedStaticSingletonProvider$IsolatedStaticSingleton.get(IsolatedStaticSingletonProvider.java:52)
          at org.jboss.weld.Container.instance(Container.java:54)
          at org.jboss.weld.bootstrap.ContainerLifecycleEventPreloader.shutdown(ContainerLifecycleEventPreloader.java:94)
          at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:453)
          at org.jboss.weld.bootstrap.api.helpers.ForwardingBootstrap.validateBeans(ForwardingBootstrap.java:85)
          at org.jboss.weld.environment.se.Weld.initialize(Weld.java:134)
          at org.jboss.forge.container.PluginRunnable.run(PluginRunnable.java:35)
          at java.lang.Thread.run(Thread.java:680)
      

              lincolnthree Lincoln Baxter III (Inactive)
              lincolnthree Lincoln Baxter III (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: