[JBossCache] - Re: Apparently losing data
by uuderzo
anonymous wrote : So, you mean that calls to TreeCache.put(x,y); stop working? How do you know this?
I don't mean that those calls stop working, but something starts going wrong.
I try to explain better the flow of data in tree cache:
1. User logon => TreeCache.put( x, y ), where x is the user session "ticket" and y is the user session data.
2. Business logic needs user session data => TreeCache.get( x, y ), y is updated with last call time information. After that => TreeCache.put( x, y ). y is returned
3. Iterate step 2 for the entire life of a user session
4. When user logs off => TreeCache.remove( x )
This is a simplified flow but this is the way our system works. And it works well until something breaks and the step 2 starts returning NULL instead of user session data. I don't understand if the data is corrupted when putting into cache in step 1, or when re-putting in step 2 or because tree cache "forgets" the node and starts returning NULL.
The problem does not happen frequently (about once a month) so it's difficult for me to track the data path and understand what's happening.
What I know is that in 99,9% cases it works great and that if I can get an object from the cache and set a field of this object, it must be not null. After updating the field I re-put into the cache and cycle this.
Another thing that I know is that the system can work well for weeks but once the malfunction appears it's no more possible to use it. I mean that after the first malfunctioning session, forther new sessions get the same malfunction. Restarting the application server solves the problem, until it reappears in near future. So it lets me think about something going wrong into the cahe.
I just wish to know if my approach has something "buggy" or if there is a real possibility that the cache starts forgetting after "something" happened, even without eviction policies installed.
Thanks again.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058002#4058002
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4058002
18Â years, 10Â months
[JBossWS] - Re: MTOM + WS Security = problem
by mr_d
Hello!
Thanks for your answers,
"richard_opalka" wrote : MTOM attachments do not need to be inlined.
I agree, but if mtom is used and it is inlined, I don't see the point of using mtom: we can have the binary parameter inlined like the others. I thought that one of the advantages of mtom was to use xop which describes how to package binary data as an attachment.
@davideling
I have exactly the same config as you, same Jboss version and JbossWS version. I have also a method with a bean which contains a DataHandler (annoted). But no luck, I get always the same exception.
javax.xml.ws.soap.SOAPFaultException: Endpoint {http://foo.org/mtom}ServiceImpl does not contain operation meta data for: {http://www.w3.org/2001/04/xmlenc#}EncryptedData
But this problem doesn't change the main problem: to use mtom + ws security with jbossws. I will take a look to the sources when I got time.
:oD.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058001#4058001
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4058001
18Â years, 10Â months
[JBoss Seam] - Re: UnitTesting and jBPM pageflow
by trekker880
Ok.
Let me clear my requirement for this pageflow.
Here is somewhat i am trying to do.
| public class Test{
|
| public test() throws Exception{
|
|
| PageFlow pageflow = PageFlow.Instance(); <---Start the pageflow here--->
|
| And using this pageflow object i want to extract the view id of the current page and the next page to it.
| }
|
| public static void main(String[] args){
| Test test1= new Test();
| test1.test();
| }
|
this is the idea..Whatever the pageflow is defined in the pageflow-definition.xml , I am able to find out the current page,current view id and all the related info. in a java file so that the method in it is accessible to the other class...In short i want this java class as a utility to fit into my application.
Thanx,
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057996#4057996
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057996
18Â years, 10Â months
[JBoss Seam] - jbpm and exception handling
by leezard
Hi,
What should I do to be able to use declarative (XML) exception handling together with pageflows?
I've got very simple pageflow where I have
| <start-page name="setRevokeDetails" view-id="/setRevokeDetails.jspx" no-conversation-view-id="/main.jspx">
| <redirect/>
| <transition name="cancel" to="revokeCancelled"/>
| <transition name="process" to="checkRevokeResult">
| <action expression="#{transactionRevoker.revokeTransaction}"/>
| </transition>
| </start-page>
|
| <decision name="checkRevokeResult" expression="#{transactionRevoker.forceRevoke}">
| <transition name="false" to="revokeResult"/>
| <transition name="true" to="forceRevoke"/>
| </decision>
|
| ...
|
My pages.xml exceptions section looks as follows:
| <exception>
| <end-conversation/>
| <redirect view-id="/generalError.jspx">
| <message>Unexpected failure</message>
| </redirect>
| </exception>
|
|
Now method called transactionRevoker.revokeTransaction() throws Exception. It's a method that calls external EJB service. I catch only one exception in this method, and when it throws RuntimeException I get very long stack trace and bad redirect message in browser.
Stack trace says that jPDL can't resolve #{transactionRevoker.forceRevoke}. And I don't know how to cope with exception in this case. I'd like to be able to redirect user to general error page without coding it every time I do something potentially exception-prone.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057992#4057992
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057992
18Â years, 10Â months
[EJB 3.0] - Can a Stateless bean make a call to an entity bean to persis
by ashusri000
Hi All ,
I am facing a problem in trying to put a call from a Stateless bean to an entity bean to persist an object . The beans are packed in an ear file and have been deployed on JBOss Server 4.xx . When I make a call to persist the entity bean object then it throws up an error as this :
javax.persistence.PersistenceException: Exception [TOPLINK-7060] (Oracle TopLink Essentials - 2.0 (Build b41-beta2 (03/30/2007))): oracle.toplink.essentials.exceptions.ValidationException
Exception Description: Cannot acquire data source [java:/system].
Internal Exception: javax.naming.InvalidNameException: Not a compound name: system
12:57:44,968 ERROR [STDERR] at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:220)
12:57:44,968 ERROR [STDERR] at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:78)
12:57:44,968 ERROR [STDERR] at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:111)
12:57:44,968 ERROR [STDERR] at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:105)
12:57:44,968 ERROR [STDERR] at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:76)
12:57:44,968 ERROR [STDERR] at src.FirstSessionBean.sayHello(FirstSessionBean.java:23)
12:57:44,968 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
12:57:44,968 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
12:57:44,968 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
12:57:44,968 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
12:57:44,968 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
12:57:44,968 ERROR [STDERR] at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
12:57:44,968 ERROR [STDERR] at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
12:57:44,968 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
12:57:44,968 ERROR [STDERR] at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
12:57:44,968 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
12:57:44,968 ERROR [STDERR] at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
12:57:44,968 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
12:57:44,968 ERROR [STDERR] at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
12:57:44,968 ERROR [STDERR] at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:197)
12:57:44,968 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
12:57:44,968 ERROR [STDERR] at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
12:57:44,968 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
12:57:44,968 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
12:57:44,968 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
12:57:44,968 ERROR [STDERR] at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
12:57:44,968 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
12:57:44,984 ERROR [STDERR] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
12:57:44,984 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
12:57:44,984 ERROR [STDERR] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
12:57:44,984 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
12:57:44,984 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:227)
12:57:44,984 ERROR [STDERR] at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:59)
12:57:44,984 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
12:57:44,984 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:102)
12:57:44,984 ERROR [STDERR] at $Proxy67.sayHello(Unknown Source)
12:57:44,984 ERROR [STDERR] at TestServlet.doPost(TestServlet.java:79)
12:57:44,984 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
12:57:44,984 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
12:57:44,984 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
12:57:44,984 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
12:57:44,984 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
12:57:44,984 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
12:57:44,984 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
12:57:44,984 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
12:57:44,984 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
12:57:44,984 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
12:57:44,984 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
12:57:44,984 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
12:57:44,984 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
12:57:44,984 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
12:57:44,984 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
12:57:44,984 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
12:57:44,984 ERROR [STDERR] at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
12:57:44,984 ERROR [STDERR] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
12:57:44,984 ERROR [STDERR] at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
12:57:44,984 ERROR [STDERR] at java.lang.Thread.run(Unknown Source)
12:57:44,984 ERROR [STDERR] Caused by: Exception [TOPLINK-7060] (Oracle TopLink Essentials - 2.0 (Build b41-beta2 (03/30/2007))): oracle.toplink.essentials.exceptions.ValidationException
Exception Description: Cannot acquire data source [java:/system].
Internal Exception: javax.naming.InvalidNameException: Not a compound name: system
12:57:44,984 ERROR [STDERR] at oracle.toplink.essentials.exceptions.ValidationException.cannotAcquireDataSource(ValidationException.java:358)
12:57:44,984 ERROR [STDERR] at oracle.toplink.essentials.jndi.JNDIConnector.connect(JNDIConnector.java:120)
12:57:44,984 ERROR [STDERR] at oracle.toplink.essentials.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:170)
12:57:44,984 ERROR [STDERR] at oracle.toplink.essentials.internal.sessions.DatabaseSessionImpl.loginAndDetectDatasource(DatabaseSessionImpl.java:537)
12:57:44,984 ERROR [STDERR] at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:206)
12:57:44,984 ERROR [STDERR] at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:212)
12:57:44,984 ERROR [STDERR] ... 56 more
12:57:44,984 ERROR [STDERR] Caused by: javax.naming.InvalidNameException: Not a compound name: system
12:57:44,984 ERROR [STDERR] at javax.naming.CompoundName.addAll(Unknown Source)
12:57:44,984 ERROR [STDERR] at org.jnp.interfaces.NamingContext.composeName(NamingContext.java:905)
12:57:44,984 ERROR [STDERR] at org.jnp.interfaces.NamingContext.getAbsoluteName(NamingContext.java:1464)
12:57:44,984 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:618)
12:57:44,984 ERROR [STDERR] at javax.naming.InitialContext.lookup(Unknown Source)
12:57:44,984 ERROR [STDERR] at oracle.toplink.essentials.jndi.JNDIConnector.connect(JNDIConnector.java:114)
12:57:44,984 ERROR [STDERR] ... 60 more
12:57:45,000 INFO [STDOUT] Finished Transaction
---------------------------------------------------------------------------------
** Please can u tell where the problem is . I am calling this stateless bean from a servlet .
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057989#4057989
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057989
18Â years, 10Â months