[weld-issues] [JBoss JIRA] (WELD-1115) UnserializableDependencyException with dependency on SLSB

Marek Schmidt (JIRA) jira-events at lists.jboss.org
Wed Apr 25 12:35:17 EDT 2012


Marek Schmidt created WELD-1115:
-----------------------------------

             Summary: UnserializableDependencyException with dependency on SLSB
                 Key: WELD-1115
                 URL: https://issues.jboss.org/browse/WELD-1115
             Project: Weld
          Issue Type: Bug
          Components: Bootstrap and Metamodel API
    Affects Versions: 2.0.0.Alpha2
         Environment: AS 7.1.1.Final with Weld 2.0.0.Alpha2
            Reporter: Marek Schmidt
            Assignee: Jozef Hartinger
             Fix For: 2.0.0.Alpha3


An application containing the following beans (among others) fails to deploy with org.jboss.weld.exceptions.UnserializableDependencyException. 

{code}
@SessionScoped
@Stateful
public EjbGameBean implements Serializable {
 ...
 @Inject
 RandomStatelessEjb randomStatelessEjb;

 ...
}
{code}

{code}
@Stateless
public class RandomStatelessEjb
{
   @Inject
   @Random
   Instance<Integer> randomNumber;
   
   public int getRandom() {
      return randomNumber.get();
   }
}
{code}

It probably shouldn't require a @Stateless session bean to be Serializable.

{noformat}
JBAS014777:   Services which failed to start:      service jboss.deployment.unit."weld-clustering-tests.war".WeldService: org.jboss.msc.service.StartException in service jboss.deployment.unit."weld-clustering-tests.war".WeldService: org.jboss.weld.exceptions.UnserializableDependencyException: WELD-001413 The bean Session bean [class org.jboss.weld.tests.clustering.numberguess.decorator.EjbGameBean with qualifiers [@Default @Named @Any]; local interfaces are [GameLocal] declares passivating scope but has non-serializable dependency Session bean [class org.jboss.weld.tests.clustering.numberguess.decorator.RandomStatelessEjb with qualifiers [@Any @Default]; local interfaces are [RandomStatelessEjb]
{noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the weld-issues mailing list