Bug #428
fermé[Websphere] QueryDescription n'est pas serializable
Description
Lors de la génération des stubs et skeletons pour un déploiement Websphere, la commande Rmic plante:
[loaded C:\Program Files\IBM\WebSphere\AppServer1\java\jre\lib\core.jar(java/uti
l/MissingResourceException.class) in 0 ms]
[loaded S:\lucene-core-2.4.1.jar(org/apache/lucene/search/SortComparatorSource.c
lass) in 0 ms]
[loaded S:\lucene-core-2.4.1.jar(org/apache/lucene/search/ScoreDocComparator.cla
ss) in 0 ms]
[loaded S:\lucene-core-2.4.1.jar(org/apache/lucene/search/Sort.class) in 0 ms]
error: org.apache.lucene.search.Searcher is a remote implementation class and ca
nnot be used as a method argument or return type in Query.
error: Class QueryDescription contains an invalid return type.
error: Class com.silverpeas.classifieds.control.ejb.ClassifiedsBm contains an in
valid argument type in method search.
[loaded C:\SilverpeasV5\silverpeas\jar\silverpeas.ear\tmpejbdeploy\a7c48cf\class
ifieds-ejb-5.1-SNAPSHOT\build\classes\com\silverpeas\classifieds\control\ejb\EJS
RemoteStatelessejb_ClassifiedsBmHome_0a391e9a.class in 10 ms]
[loaded C:\SilverpeasV5\silverpeas\jar\silverpeas.ear\tmpejbdeploy\a7c48cf\class
ifieds-ejb-5.1-SNAPSHOT\ImportedClasses\com\silverpeas\classifieds\control\ejb\C
lassifiedsBmHome.class in 0 ms]
[loaded C:\Program Files\IBM\WebSphere\AppServer1\lib\j2ee.jar(javax/ejb/CreateE
xception.class) in 0 ms]
3 errors
Il s'avère que QueryDescription n'est pas serializable. Elle contient des objets qui font appel à Remote.