[JBoss Cache: Core Edition] - Re: JBossCache 1.4.0.SP1 And WebSphere 6.0.2.31 in cluster
by vikasgarg
We are getting the following error on both the nodes in the cluster if we deploy the application by specifying TCP discovery protocol in the jbosscache-config.xml.
Below is the server log:
[2/12/09 11:18:13:985 PST] 00000030 PropertyConfi I org.jboss.cache.PropertyConfigurator Found existing property editor for org.w3c.dom.Element: org.jboss.util.propertyeditor.ElementEditor@4154831d
[2/12/09 11:18:14:001 PST] 00000030 PropertyConfi I org.jboss.cache.PropertyConfigurator configure attribute size: 19
[2/12/09 11:18:14:140 PST] 00000030 TreeCache W org.jboss.cache.TreeCache _createService No transaction manager lookup class has been defined. Transactions cannot be used
[2/12/09 11:18:14:229 PST] 00000030 InterceptorCh I org.jboss.cache.factories.InterceptorChainFactory createPessimisticInterceptorChain interceptor chain is:
class org.jboss.cache.interceptors.CallInterceptor
class org.jboss.cache.aop.interceptors.PojoEvictionInterceptor
class org.jboss.cache.interceptors.PessimisticLockInterceptor
class org.jboss.cache.interceptors.UnlockInterceptor
class org.jboss.cache.interceptors.ReplicationInterceptor
class org.jboss.cache.interceptors.TxInterceptor
class org.jboss.cache.interceptors.CacheMgmtInterceptor
[2/12/09 11:18:14:475 PST] 00000030 UNICAST E org.jgroups.protocols.UNICAST setProperties window_size is deprecated and will be ignored
[2/12/09 11:18:14:478 PST] 00000030 UNICAST E org.jgroups.protocols.UNICAST setProperties min_threshold is deprecated and will be ignored
[2/12/09 11:18:14:650 PST] 00000034 ConnectionTab I org.jgroups.blocks.ConnectionTable start server socket created on 127.0.0.1:12000
[2/12/09 11:18:14:920 PST] 00000035 SystemOut O
-------------------------------------------------------
GMS: address is 127.0.0.1:12000
-------------------------------------------------------
[2/12/09 11:18:16:965 PST] 00000030 TreeCache I org.jboss.cache.TreeCache startService TreeCache local address is 127.0.0.1:12000
[2/12/09 11:18:16:966 PST] 00000036 TreeCache I org.jboss.cache.TreeCache viewAccepted viewAccepted(): [127.0.0.1:12000|0] [127.0.0.1:12000]
[2/12/09 11:18:16:987 PST] 00000037 ConnectionTab I org.jgroups.blocks.ConnectionTable$Connection matchCookie input_cookie is bela
[2/12/09 11:18:16:987 PST] 00000030 TreeCache I org.jboss.cache.TreeCache fetchStateOnStartup State could not be retrieved (we are the first member in group)
[2/12/09 11:18:16:997 PST] 00000034 ConnectionTab I org.jgroups.blocks.ConnectionTable getConnection created socket to 127.0.0.1:12000
[2/12/09 11:18:16:997 PST] 00000030 TreeCache I org.jboss.cache.aop.PojoCache parseConfig parseConfig(): PojoCacheConfig is empty
jbosscache-config.xml reads as:
<!-- Transport protocol: http://wiki.jboss.org/wiki/JGroupsUDP -->
<!--UDP mcast_addr="239.255.133.9" mcast_port="9010"
ip_ttl="1" ip_mcast="true" mcast_send_buf_size="150000"
mcast_recv_buf_size="80000" ucast_send_buf_size="150000"
ucast_recv_buf_size="80000" loopback="false" /-->
<TCP bind_addr="" start_port="12000" end_port="12000">
<!-- Discovery protocols: http://wiki.jboss.org/wiki/JGroupsPING -->
<PING timeout="2000" num_initial_members="3"
up_thread="false" down_thread="false" />
<!-- Merging Protocols: http://wiki.jboss.org/wiki/JGroupsMERGE2 -->
<MERGE2 min_interval="10000" max_interval="20000" />
<!-- Failure Detection Protocols: http://wiki.jboss.org/wiki/JGroupsFD_SOCK -->
<FD_SOCK />
<!-- Failure Detection Protocols: http://wiki.jboss.org/wiki/JGroupsVERIFY_SUSPECT -->
<VERIFY_SUSPECT timeout="1500" up_thread="false"
down_thread="false" />
<!-- Reliable Message Transmission Protocols: http://wiki.jboss.org/wiki/JGroupsPbcastNAKACK -->
<pbcast.NAKACK gc_lag="50"
retransmit_timeout="600,1200,2400,4800" max_xmit_size="8192"
up_thread="false" down_thread="false" />
<!-- Reliable Message Transmission Protocols: http://wiki.jboss.org/wiki/JGroupsUNICAST-->
<UNICAST timeout="600,1200,2400" window_size="100"
min_threshold="10" down_thread="false" />
<!-- Reliable Message Transmission Protocols: http://wiki.jboss.org/wiki/JGroupsPbcastSTABLE -->
<pbcast.STABLE desired_avg_gossip="20000"
up_thread="false" down_thread="false" />
<!-- Group membership protocol: http://wiki.jboss.org/wiki/JGroupsPbcastGMS -->
<pbcast.GMS join_timeout="5000"
join_retry_timeout="2000" shun="true" print_local_addr="true" />
<!-- Flow control protocol: http://wiki.jboss.org/wiki/JGroupsFC
<FC max_credits="2000000" down_thread="false" up_thread="false" min_threshold="0.20"/>-->
<!-- Fragmentation protocol: http://wiki.jboss.org/wiki/JGroupsFRAG -->
<FRAG frag_size="8192" down_thread="false"
up_thread="true" />
<!-- State tranfer protocol: http://wiki.jboss.org/wiki/JGroupsPbcastSTATE_TRANSFER -->
<pbcast.STATE_TRANSFER up_thread="true"
down_thread="true" />
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4209710#4209710
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4209710
17 years, 4 months
[EJB 3.0] - Couldn't handle invocation directly within...StatelessRemote
by ebross
Development Platform:
Eclipse
Linux
JBoss 5
JSF and Trinadad
Problem Description:
I have two classes:
(a) Stateless bean: DocumentController, packaged in a ejb.jar
(b) JSF Backing beans: AbstractDocumentPageBean, package: web.war
1. The ejb.jar and web.war are ear modules and deployed succesfully in ear file.
2. When a web page is called, a form appears,
3. I fill the fields and click the "create" button
4. Validation is ok --no error display
5. JBoss displays the stack trace (see below), "Couldn't handle invocation directly within...StatelessRemoteProxyInvocationHandler"
Could someone please help me understand what "Couldn't handle invocation directly within...StatelessRemoteProxyInvocationHandler" means
Thank you in advance
| ----------------------------------------------------------------------------------------------------
| Stateless: DocumentController, Package: ejb.jar
| ----------------------------------------------------------------------------------------------------
| @javax.ejb.Stateless(mappedName="ejb/DocumentController")
| @javax.ejb.Remote({com.xxxxxxxx.xxxx.ejb.intf.DocumentRemote.class})
| @javax.ejb.Local({com.xxxxxxxx.xxxx.ejb.intf.DocumentLocal.class})
| @javax.ejb.TransactionManagement(value=javax.ejb.TransactionManagementType.CONTAINER)
| @javax.ejb.TransactionAttribute(javax.ejb.TransactionAttributeType.REQUIRES_NEW)
| @javax.interceptor.Interceptors ({com.xxxxxxxx.xxxx.ejb.interceptor.Tracer.class})
|
| // Security annotation
| @javax.annotation.security.DeclareRoles({"admin", "employee", "member", "subscriber"})
| @javax.annotation.security.RolesAllowed({"admin","employee", "member", "subscriber"})
| @org.jboss.ejb3.annotation.SecurityDomain(value = "xxxxRealm")
|
| public class DocumentController implements com.xxxxxxxx.xxxx.ejb.intf.DocumentRemote, com.xxxxxxxx.xxxx.ejb.intf.DocumentLocal,
| java.io.Serializable{
|
| /**
| * The logger object.
| */
| private static final org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(DocumentController.class);
|
| @javax.ejb.EJB
| private com.xxxxxxxx.xxxx.dao.intf.DocumentDAOLocal documentDAO;
|
| public DocumentController() {
| }
|
| /**
| */
| @javax.annotation.security.PermitAll
|
| public DocumentEntity createEntity(DocumentEntity bean) { <----- CALL IN BACKING BEAN
|
| log.debug("Entering createEntity");
|
| DocumentEntity retVal = null;
| if (bean== null) {
| log.error("Exiting createEntity - Could not do create Document: " + "Null Document");
| return null;
| }
| if(!bean.isNotNullFieldEmpty()){
| log.error("Exiting createEntity - Could not do create Document: " + "Document contains empty mandatory field");
| return null;
| }
| try{
| retVal = getDocumentDAOImpl().createEntity(bean);
| } catch(com.xxxxxxxx.xxxx.dao.exception.DAOException e) {
| e.printStackTrace();
| log.error("Exiting createEntity - Could not do create Document: " + e.getMessage(), e);
| return null;
| }
| log.debug("Exiting createEntity");
| return retVal;
| }
| }
|
| ----------------------------------------------------------------------------------------------------
| JSf Backing beans: AbstractDocumentPageBean, Package: web.war
| ----------------------------------------------------------------------------------------------------
| public class AbstractDocumentPageBean extends com.xxxxxxxx.xxxx.web.bean.AbstractFacesBean{
|
| /**
| * The logger object.
| */
| private static final org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(AbstractDocumentPageBean.class);
| /**
| * The DocumentForm object.
| */
| protected DocumentForm formBean = null;
| protected DocumentConverter converter = null;
| protected DocumentForm[] documentAsArray = null;
|
| protected UserInfoBean userInfo = null;
|
| private javax.faces.model.DataModel listModel;
|
| @javax.ejb.EJB
| private com.xxxxxxxx.xxxx.ejb.intf.DocumentRemote documentManager;
|
| /*
| * Non-arg Constructor
| */
| public AbstractDocumentPageBean(final DocumentForm formBean){
| this(formBean, new UserInfoBean());
| }
|
| /**
| * Getter method for formBean property.
| *
| * @return the value of formBean property
| */
| public DocumentForm getFormBean(){
| if (formBean == null) {
| formBean = (DocumentForm ) JSFUtils.getObjectFromRequestParameter("jsfcrud.Document", converter, null);
| }
| if (formBean == null) {
| formBean = new DocumentForm(new DocumentEntity(), userInfo);
| editAction = false;
| deleteAction = false;
| }
| return formBean;
| }
|
| /**
| * Getter method for FormBean.DocumentEntity property.
| *
| * Returns the value of the <code>FormBean.DocumentEntity</code> property.
| */
| public DocumentEntity getFormValue(){
| return getFormBean().getBackingData();
| }
|
| /**
| * Creates a new Document.
| *
| *@return the outcome of the processing
| */
| public String createButton_action(){
| log.debug("Entering createButton_action");
|
| UserInfoBean currentUser = getUserInfo();
| if (currentUser.getAuthenticate() == true && currentUser.getAuthenticated() == false) {
| log.error("Exiting createButton_action : " + "User is not authenticated", null);
| return null;
| }
| /*
| * At this point the formBean should not have an id
| * but if it does, then don't create it, but anyway check
| * whether the id already exist or not. If it does then
| * display as duplicate --already exist in the database
| */
| if(getFormValue().getPrimaryKey() != null){
| DocumentEntity retVal = getDocumentManager().findByPrimaryKey(getFormValue().getPrimaryKey());
| if(retVal != null){
| log.error("Exiting createButton_action : " + "Cannot create a duplicate.", null);
| addFacesErrorMessage("Document already exists");
| return null;
| }
| }
| DocumentEntity bean= new DocumentEntity();
| bean.setDomainType(getFormValue().getDomainType());
| bean.setDescription(getFormValue().getDescription());
| bean.setCreatedBy(getFormValue().getCreatedBy());
| bean.setDateCreated(getFormValue().getDateCreated());
| bean.setUpdatedBy(getFormValue().getUpdatedBy());
| bean.setDateLastUpdated(getFormValue().getDateLastUpdated());
| bean.setActivated(getFormValue().getActivated());
| bean.setNotes(getFormValue().getNotes());
| bean.setVersion(getFormValue().getVersion());
| bean.setHits(getFormValue().getHits());
| try {
|
| getDocumentManager().createEntity(bean); <---- PROBLEM LINE
|
|
| addSuccessMessage("Document was successfully created.");
| } catch (Exception e) {
| log.error("Exiting createButton_action : " + "Unexpected error when creating Document", null);
| addFacesErrorMessage("Unexpected error when creating Document");
| return null;
| }
| log.debug("Exiting createButton_action");
| return "success";
| }
| }
|
|
| ----------------------------------------------------------------------------------------------------
| Stack Trace : Couldn't handle invocation directly within...StatelessRemoteProxyInvocationHandler
| ----------------------------------------------------------------------------------------------------
| 2009-02-12 17:05:23,290 DEBUG [org.jboss.ejb3.proxy.handler.ProxyInvocationHandlerBase] (http-localhost%2F127.0.0.1-8080-1) Couldn't handle invocation directly within org.jboss.ejb3.proxy.handler.session.stateless.StatelessRemoteProxyInvocationHandler@3ce5d: Current invocation "public abstract com.xxxxxxxx.xxxx.entity.model.DocumentEntity com.xxxxxxxx.xxxx.ejb.intf.DocumentService.createEntity(com.xxxxxxxx.xxxx.entity.model.DocumentEntity) throws com.xxxxxxxx.xxxx.dao.exception.DAOException" is not eligible for direct handling by org.jboss.ejb3.proxy.handler.session.stateless.StatelessRemoteProxyInvocationHandler@3ce5d
| 2009-02-12 17:05:23,342 DEBUG [org.jboss.ejb3.proxy.invocation.InvokableContextStatefulRemoteProxyInvocationHack] (http-localhost%2F127.0.0.1-8080-1) Received invocation request to method com.xxxxxxxx.xxxx.ejb.intf.DocumentRemote: com.xxxxxxxx.xxxx.ejb.intf.DocumentService.createEntity(com.xxxxxxxx.xxxx.entity.model.DocumentEntity); using hash: 5676740933045534775
| 2009-02-12 17:05:24,247 DEBUG [org.jboss.ejb3.stateless.StatelessContainer] (http-localhost%2F127.0.0.1-8080-1) Received dynamic invocation for method with hash: 5676740933045534775
| 2009-02-12 17:05:25,134 ERROR [com.xxxxxxxx.xxxx.web.bean.AbstractDocumentPageBean] (http-localhost%2F127.0.0.1-8080-1) Exiting createButton_action : Unexpected error when creating Document
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4209708#4209708
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4209708
17 years, 4 months
[Installation, Configuration & DEPLOYMENT] - Java2ParentDelegation and multiple files
by Ronnie1972
I've taken over a project that has the following deployment:
| myApp.ear
| -----application.xml
| -----Manifest.mf
| -----webinf-lib.jar
| -----myWar.war
| -----------javax.servlet.jar
| -----------web.xml
| -----------Manifest.mf
| -----myWsr.wsr
| -----------jar1.jar
| -----------xbean.jar
| -----------jar3.jar
| -----------Manifest.mf
| -----------web-service.xml
|
xbean.jar is also in the jboss server's server/default/lib directory.
I have read the two docs that show me what I need to do to make the application use MY xbean.jar (newer version):
http://www.jboss.org/community/docs/DOC-9288
http://www.jboss.org/community/docs/DOC-10290
So I know that I need to turn off java2ParentDelegation.
I've tried everyway I can think to make this work, but still have a few questions.
1. I notice the examples show com.example:archive=unique-archive-name, but then refer to com.example:loader=unique-archive-name. I'm not exactly sure why, or which is correct.
2. in my example I originally thought I only needed a meta-inf/jboss-app.xml in the ear file, but I've tried it with putting a web-inf/jboss-web.xml in the war file and the wsr (I wasn't exactly sure what should go in the wsr). Should the .wsr have anything in it?
Nothing seems to work quite right (they definitely stop using the classes from the server, but appear to not find my classes either).
Here's my jboss-app.xml file:
<jboss-app>
| <loader-repository>
| org.apache.xmlbeans:loader=myApp.ear
| <loader-repository-config>
| java2ParentDelegation=false
| </loader-repository-config>
| </loader-repository>
| </jboss-app>
Unfortunately I don't have much control over the server. I know I've done something wrong (I'm pretty new to deployments in general) but I can't quite put my finger on it.
Any help would be greatly appreciated.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4209703#4209703
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4209703
17 years, 4 months