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

[appserver-io/appserver] Overriding SB types in epb.xml does result in Fatal Error #882

Closed
wick-ed opened this issue Jul 24, 2015 · 0 comments
Assignees
Labels

Comments

@wick-ed
Copy link
Member

wick-ed commented Jul 24, 2015

When overriding the type of a session bean within the epb.xml (e.g. annotation says Stateless, epb.xml says Stateful) app deployment does produce a fatal error.

Examples:

PHP Fatal error:  Call to undefined method AppserverIo\Description\StatelessSessionBeanDescriptor::getPostDetachCallbacks() in /opt/appserver/vendor/appserver-io/description/src/AppserverIo/Description/StatefulSessionBeanDescriptor.php on line 255
[2015-07-24 10:00:42] - localhost.localdomain (critical): Call to undefined method AppserverIo\Description\StatefulSessionBeanDescriptor::isInitOnStartup() []

This seems to be a result of polymorphism as hooks of the initially configured bean type are called on the instance of the overriden type.

This seems to also be the case vice versa.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant