[JBossCache] - Re: Strange ClassCastException in OptimisticCreateIfNotExist
by spennec
Hello Manik,
Here is what I hope will help you. Since I'm not too knowledgable about TreeCache's internals, I selected a few logs that I thought were representing of the situation just before the exception.
| <DEBUG> <14:26:40,328> <Started new local TX as result of remote PREPARE: local TX=Xid=BEA1-018D3B5CD670(42403790),
| Status=Active,numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since begin=0,seconds left=30,activeThread=Thread
| [Incoming Thread,MyApp-TreeCache-Cluster,10.23.65.28:1716,5,Incoming],SCInfo[domain_MyApp+main-env_MyCompany_MyApp_intMgd02]
| =(state=active),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=main-env_MyCompany_MyApp_intMgd02
| +10.23.65.28:6621+domain_MyApp+t3+, XAResources={weblogic.jdbc.wrapper.JTSXAResourceImpl},NonXAResources={})]) (Status=0),
| global TX=GlobalTransaction:<10.23.65.38:1214>:72> <App.TxInterceptor > <org.jboss.cache.interceptors.TxInterceptor.
| handleRemotePrepare(TxInterceptor.java:205)>
|
| <DEBUG> <14:26:40,328> <creating new tx entry> <App.TxInterceptor>
| <org.jboss.cache.interceptors.TxInterceptor.handleRemotePrepare(TxInterceptor.java:239)>
|
| <DEBUG> <14:26:40,328> <Handling optimistic remote prepare GlobalTransaction:<10.23.65.38:1214>:72> <App.TxInterceptor>
| <org.jboss.cache.interceptors.TxInterceptor.handleOptimisticPrepare(TxInterceptor.java:372)>
|
| <DEBUG> <14:26:40,328> <Adding Method MethodName: _remove; MethodIdInteger: 5; Args: (GlobalTransaction:<10.23.65.38:1214>:72,
| /MyApp/DataType1/testDataType1ForCache400-2, true) to modification list> <App.OptimisticNodeInterceptor> <org.jboss.cache.interceptors.
| OptimisticNodeInterceptor.addToModificationList(OptimisticNodeInterceptor.java:202)>
|
| Here are around 30 others messages about _remove calls
|
| <DEBUG> <14:26:47,422> <Adding Method MethodName: _put; MethodIdInteger: 3; Args: (GlobalTransaction:<10.23.65.38:1214>:72,
| /MyApp/Portfolios/Portfolio_cache, item, {BIG_TOSTRING}
| <ERROR> <14:26:59,971> <method invocation failed> <App.TxInterceptor>
| <org.jboss.cache.interceptors.TxInterceptor.replayModifications(TxInterceptor.java:520)>
| java.lang.ClassCastException: com.MyCompany.MyApp.cache.CachedValueObject
| at org.jboss.cache.interceptors.OptimisticCreateIfNotExistsInterceptor.invoke(OptimisticCreateIfNotExistsInterceptor.java:57)
| at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:76)
| at org.jboss.cache.interceptors.OptimisticValidatorInterceptor.invoke(OptimisticValidatorInterceptor.java:67)
| at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:76)
| at org.jboss.cache.interceptors.OptimisticLockingInterceptor.invoke(OptimisticLockingInterceptor.java:99)
| at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:76)
| at org.jboss.cache.interceptors.OptimisticReplicationInterceptor.invoke(OptimisticReplicationInterceptor.java:137)
| at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:76)
| at org.jboss.cache.interceptors.NotificationInterceptor.invoke(NotificationInterceptor.java:32)
| at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:76)
| at org.jboss.cache.interceptors.TxInterceptor.replayModifications(TxInterceptor.java:511)
| at org.jboss.cache.interceptors.TxInterceptor.handleOptimisticPrepare(TxInterceptor.java:373)
| at org.jboss.cache.interceptors.TxInterceptor.handleRemotePrepare(TxInterceptor.java:250)
| at org.jboss.cache.interceptors.TxInterceptor.invoke(TxInterceptor.java:100)
| at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:76)
| at org.jboss.cache.interceptors.CacheMgmtInterceptor.invoke(CacheMgmtInterceptor.java:123)
| at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:76)
| at org.jboss.cache.interceptors.InvocationContextInterceptor.invoke(InvocationContextInterceptor.java:62)
| at org.jboss.cache.CacheImpl.invokeMethod(CacheImpl.java:3939)
| at org.jboss.cache.CacheImpl._replicate(CacheImpl.java:2853)
| at sun.reflect.GeneratedMethoMyAppcessor92.invoke(Unknown Source)
| at sun.reflect.DelegatingMethoMyAppcessorImpl.invoke(DelegatingMethoMyAppcessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jgroups.blocks.MethodCall.invoke(MethodCall.java:330)
| at org.jboss.cache.interceptors.CallInterceptor.invoke(CallInterceptor.java:49)
| at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:76)
| at org.jboss.cache.interceptors.OptimisticNodeInterceptor.invoke(OptimisticNodeInterceptor.java:161)
| at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:76)
| at org.jboss.cache.interceptors.EvictionInterceptor.invoke(EvictionInterceptor.java:90)
| at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:76)
| at org.jboss.cache.interceptors.OptimisticCreateIfNotExistsInterceptor.invoke(OptimisticCreateIfNotExistsInterceptor.java:70)
| <DEBUG> <14:26:59,971> <Finished remote prepare GlobalTransaction:<10.23.65.38:1214>:72> <App.TxInterceptor>
| <org.jboss.cache.interceptors.TxInterceptor.handleRemotePrepare(TxInterceptor.java:262)>
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101304#4101304
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4101304
18 years, 5 months
[JBoss Seam] - Re: Why cannot I run more than one concurrent conversation S
by gus888
"pete.muir(a)jboss.org" wrote : The programmer would make the navigation link he clicks propagation="none"
Hi Pete,
Thank you very much for your replies on my several Conversation discussion post. Could you please give me a details instruction in the following codes which I modified from the booking example? I changed the HotelSearch bean from Session to Conversation. Thank you so much in advance.
HotelSearch.java@Stateful
| @Name("hotelSearch")
| @Scope(ScopeType.CONVERSATION)
| @Restrict("#{identity.loggedIn}")
| public class HotelSearchingAction implements HotelSearching {
| ...
|
| @Begin
| public void find() {
| page = 0;
| queryHotels();
| }
|
| @Begin(join=true)
| public void nextPage() {
| page++;
| queryHotels();
| }
|
| @Begin(join=true)
| public void previousPage() {
| page--;
| queryHotels();
| }
|
| private void queryHotels() {
| ...
| }
|
| @Remove
| public void destroy() {}
| }
|
HotelBooking.java@Stateful
| @Name("hotelBooking")
| @Scope(ScopeType.CONVERSATION)
| @Restrict("#{identity.loggedIn}")
| public class HotelBookingAction implements HotelBooking {
|
| @Begin
| public void selectHotel(Hotel selectedHotel) {
| ...
| }
|
| public void bookHotel() {
| ...
| }
|
| public void setBookingDetails() {
| ...
| }
|
| @End
| public void confirm() {
| ...
| }
|
| @End
| public void cancel() {}
|
| @Remove
| public void destroy() {}
| }
and main.xhtml<h:selectInputText id="searchString" />
| <h:commandButton id="findHotels" value="Find Hotels" action="#{hotelSearch.find}" />
|
| <h:dataTable id="hotels" value="#{hotels}" var="hot" >
| ...
| <h:column>
| <f:facet name="header">Action</f:facet>
| <ice:commandLink id="viewHotel" value="View Hotel" action="#{hotelBooking.selectHotel(hot)}"/>
| </h:column>
| </h:dataTable>
|
| <h:commandLink value="Next Page" action="#{hotelSearch.nextPage}"/>
| <h:commandLink value="Previous Page" action="#{hotelSearch.previousPage}"/>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101295#4101295
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4101295
18 years, 5 months
[JBoss Seam] - seam+gwt problem
by romant1
Hi guys,
I am trying to use gwt with seam, but when I deploy my application (actually the same as presented in examples in the seam package when you download it). There is no problem to build it, deploy as EAR and run. But when I try to push a button to call my own RPC method gwtValidateUser(String) which returns String, I get the following error
Exception while dispatching incoming RPC call
com.google.gwt.user.client.rpc.SerializationException: Unknown parameter 0 type 'gwtValidateUser'
at org.jboss.seam.remoting.gwt.GWTRemoteService.processCall(GWTRemoteService.java:254)
at org.jboss.seam.remoting.gwt.GWTRemoteService.getResource(GWTRemoteService.java:178)
at org.jboss.seam.servlet.SeamResourceServlet.doGet(SeamResourceServlet.java:69)
at org.jboss.seam.servlet.SeamResourceServlet.doPost(SeamResourceServlet.java:78)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
....
Caused by: java.lang.ClassNotFoundException: gwtValidateUser
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.jboss.seam.remoting.gwt.GWTRemoteService.getClassFromName(GWTRemoteService.java:429)
at org.jboss.seam.remoting.gwt.GWTRemoteService.getClassOrPrimitiveFromName(GWTRemoteService.java:446)
at org.jboss.seam.remoting.gwt.GWTRemoteService.processCall(GWTRemoteService.java:252)
... 40 more
I have tried almost everything but still cannot get it work. Any ideas? Was anybody able to run the gwt example on JBoss4.2.2.GA?
Thanx.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101289#4101289
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4101289
18 years, 5 months
[Installation, Configuration & DEPLOYMENT] - How to Deploy JBoss Scheduler Service with Web App
by jstickel
Hey Folks.
I have a web app (.war) to deploy to JBoss 4.2, and there's a class in the app that implements org.jboss.varia.scheduler.Schedulable. I want this thing to be invoked by the JBoss Scheduler. I can get the WAR deployed with no problems, but the scheduler service is not starting when I deploy the app or when I restart the server.
Note: This is simply a web deployment (WAR), not a J2EE Application (EAR).
I have the jboss:service=Timer service started at the server level, but I can't seem to get my Schedulable instance started.
I don't want to deploy the Scheduler at the server level (class not found), but rather with the web app. I'm open to suggestions on how to configure both the timer and the scheduler services.
scheduler-service.xml (in WAR file ~/META-INF/ directory) is as follows:
true
MySchedulableImpl
arg1
java.lang.String
1/1/2007 12:00 am
<!-- 1000 * 60 * 30 --><!-- every 30 minutes -->
1000 <!-- every second -->
-1
true
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101287#4101287
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4101287
18 years, 5 months