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

UnserializableDependencyException misleading message text if the problem is passivation capability

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 2.0.2.Final
    • 2.0.0.Final
    • None
    • None

      I have a deployment which fails with"

          Caused by: org.jboss.weld.exceptions.UnserializableDependencyException: WELD-001413 The bean Managed Bean [class org.jboss.solder.test.logging.BaldEagle] with qualifiers [@Any @Default] declares passivating scope but has non-serializable dependency Custom Bean with bean class class org.jboss.solder.logging.TypedMessageLoggerProducer and qualifiers [@javax.enterprise.inject.Any(), @javax.enterprise.inject.Default()]"}}
      at org.jboss.weld.bootstrap.Validator.validateInjectionPointPassivationCapable(Validator.java:473)
              at org.jboss.weld.bootstrap.Validator.validateInjectionPointForDeploymentProblems(Validator.java:418)
              at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:325)
              at org.jboss.weld.bootstrap.Validator.validateGeneralBean(Validator.java:177)
              at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:208)
              at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:519)
              at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:70)
              at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:68)
              at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:60)
              at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:53)
              at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) [rt.jar:1.7.0_19]
              at java.util.concurrent.FutureTask.run(FutureTask.java:166) [rt.jar:1.7.0_19]
              ... 3 more
      
      

      The message is misleading, as the problem is not serializability, but passivation capability.

              marko.luksa@gmail.com Marko Luksa (Inactive)
              maschmid@redhat.com Marek Schmidt
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: