ali akbar Shahriari Garaei created BEANUTILS-543:
----------------------------------------------------
Summary: Failed to marshal EJB parameters
Key: BEANUTILS-543
URL: https://issues.apache.org/jira/browse/BEANUTILS-543
Project: Commons BeanUtils
Issue Type: Bug
Environment: I use Wildfly 11 as server and Vaadin 18 with java 8.
*{{@Stateless@Remote(QueriesRemote.class)@org.jboss.ejb3.annotation.TransactionTimeout(value
= 20, unit = TimeUnit.MINUTES)public class Queries extends Base implements
QueriesRemote{ @PersistenceContextprivate EntityManager manager;
@Resource(mappedName="java:/TedingDS")private javax.sql.DataSource db;
@Resource SessionContext ctx; public List<DynaBean>
findRecordsInTable(String querySource){
List<DynaBean> beanList = Collections.EMPTY_LIST; try (ResultSet
myResult =
db.getConnection().createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,
ResultSet.CONCUR_READ_ONLY).executeQuery(querySource)) {
RowSetDynaClass rsdc = new RowSetDynaClass(myResult, false);
beanList = rsdc.getRows();
closeAllViaResultSet(myResult);
} catch (SQLException e) {
logger.log(Level.SEVERE, "From
class:".concat(this.getClass().getName()));
} return beanList;
}
}}}*
{{@Route(value = QueriesView.ROUTE, layout =
MainLayout.class)@PageTitle(QueriesView.TITLE)public class QueriesView extends
VerticalLayout implements BeforeEnterObserver, BeforeLeaveObserver,
AfterNavigationObserver, LocaleChangeObserver, HasUrlParameter<String> {
private final Logger LOGGER = Logger.getLogger(this.getClass().getName());
public static final String ROUTE = "queryView"; public static final String
TITLE = "Query"; @EJBpublic QueriesRemote remote; public
QueriesView() {} @Overridepublic void beforeEnter(BeforeEnterEvent
beforeEnterEvent) {
LOGGER.info("beforeEnter queryView"); if(remote == null)
Notification.show("beforeEnter remote == null"); else {
List<DynaBean> list = remote.findRecordsInTable("select * from
attached limit 5");
Notification.show("Size
beforeEnter:".concat(String.valueOf(list.size())), 5000,
Notification.Position.MIDDLE);
}
}
}}}
Reporter: ali akbar Shahriari Garaei
I have added a new method to {{EJB3}} and I get the following error. I know it
is due to serializable issue, but I can't change the object because it is from
external library {{org.apache.commons.beanutils}}.
Furthermore, I use Wildfly 11 as server and Vaadin 18 with java 8.
*Is there any workaround for it?*
--
This message was sent by Atlassian Jira
(v8.3.4#803005)