Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SpringBeanAutowiringInterceptor.autowireBean() has wrong signature [SPR-5412] #10085

Closed
spring-projects-issues opened this issue Jan 14, 2009 · 5 comments
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: bug A general bug
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Jan 14, 2009

Michal Fijas opened SPR-5412* and commented

SpringBeanAutowiringInterceptor.autowireBean() should rethrow caught exceptions wrapped in EJBException and it shouldn't have any application exceptions declared.

Part of logs from websphere 6.1 with EJB3 feature pack:

WSVR0068E: Attempt to start EnterpriseBean TestEAR#TestEJB.jar#MyBean failed with exception: com.ibm.ejs.container.EJBConfigurationException: PostConstruct interceptor "public void org.springframework.ejb.interceptor.SpringBeanAutowiringInterceptor.autowireBean(javax.interceptor.InvocationContext) throws java.lang.Exception" must not throw application exceptions.
at com.ibm.ws.metadata.ejb.InterceptorMetaDataHelper.validateLifeCycleSignatureExceptParameters(InterceptorMetaDataHelper.java:1306)
at com.ibm.ws.metadata.ejb.InterceptorMetaDataHelper.validateLifeCycleSignature(InterceptorMetaDataHelper.java:1389)
at com.ibm.ws.metadata.ejb.InterceptorMetaDataFactory.addInterceptorProxies(InterceptorMetaDataFactory.java:2160)
[...]


Affects: 2.5.6

Sub-tasks:

2 votes, 2 watchers

@spring-projects-issues
Copy link
Collaborator Author

Michal Fijas commented

It applies also to releaseBean() method of the same Interceptor.

@spring-projects-issues
Copy link
Collaborator Author

Ruud Senden commented

The same problem occurs in WebSphere 7 when using this interceptor with an EJB3 stateless session bean.

@spring-projects-issues
Copy link
Collaborator Author

Juergen Hoeller commented

Thanks for pointing this out! Fixed in 3.0 M2.

Would be great if you could give it an actual try in WebSphere :-)

Juergen

@spring-projects-issues
Copy link
Collaborator Author

Morten Knudsen commented

Will this also be fixed in the 2.5 branch?

@spring-projects-issues
Copy link
Collaborator Author

Richard Myers commented

I would also like to know if this will be fixed in 2.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: bug A general bug
Projects
None yet
Development

No branches or pull requests

2 participants