Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 204804 Details for
Bug 354368
Occasional exception on refresh (F5)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Test case
clipboard.txt (text/plain), 2.77 KB, created by
RĂ¼diger Herrmann
on 2011-10-08 13:23:02 EDT
(
hide
)
Description:
Test case
Filename:
MIME Type:
Creator:
RĂ¼diger Herrmann
Created:
2011-10-08 13:23:02 EDT
Size:
2.77 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.rap.rwt >Index: src/org/eclipse/rwt/internal/service/LifeCycleServiceHandler.java >=================================================================== >RCS file: /cvsroot/rt/org.eclipse.rap/runtime.rwt/org.eclipse.rap.rwt/src/org/eclipse/rwt/internal/service/LifeCycleServiceHandler.java,v >retrieving revision 1.43 >diff -u -r1.43 LifeCycleServiceHandler.java >--- src/org/eclipse/rwt/internal/service/LifeCycleServiceHandler.java 20 Sep 2011 13:23:52 -0000 1.43 >+++ src/org/eclipse/rwt/internal/service/LifeCycleServiceHandler.java 8 Oct 2011 17:19:41 -0000 >@@ -127,7 +127,7 @@ > } > } > >- private static void clearSessionStore() { >+ static void clearSessionStore() { > Integer version = RWTRequestVersionControl.getInstance().getCurrentRequestId(); > SessionStoreImpl sessionStore = ( SessionStoreImpl )ContextProvider.getSession(); > // clear attributes of session store to enable new startup >#P org.eclipse.rap.rwt.test >Index: src/org/eclipse/rwt/internal/service/LifeCycleServiceHandler_Test.java >=================================================================== >RCS file: /cvsroot/rt/org.eclipse.rap/runtime.rwt.test/org.eclipse.rap.rwt.test/src/org/eclipse/rwt/internal/service/LifeCycleServiceHandler_Test.java,v >retrieving revision 1.12 >diff -u -r1.12 LifeCycleServiceHandler_Test.java >--- src/org/eclipse/rwt/internal/service/LifeCycleServiceHandler_Test.java 6 Oct 2011 09:23:52 -0000 1.12 >+++ src/org/eclipse/rwt/internal/service/LifeCycleServiceHandler_Test.java 8 Oct 2011 17:19:42 -0000 >@@ -24,6 +24,8 @@ > import junit.framework.TestCase; > > import org.eclipse.rap.rwt.testfixture.Fixture; >+import org.eclipse.rap.rwt.testfixture.TestRequest; >+import org.eclipse.rap.rwt.testfixture.TestResponse; > import org.eclipse.rwt.internal.application.RWTFactory; > import org.eclipse.rwt.internal.lifecycle.*; > import org.eclipse.rwt.service.IServiceHandler; >@@ -139,6 +141,29 @@ > > verify( fakeWriter ).finish(); > } >+ >+ public void testConcurrentlyResterSession() throws InterruptedException { >+ final HttpSession session = ContextProvider.getSession().getHttpSession(); >+ final Throwable[] exception = { null }; >+ Runnable runnable = new Runnable() { >+ public void run() { >+ try { >+ TestRequest request = new TestRequest(); >+ request.setSession( session ); >+ Fixture.createServiceContext( new TestResponse(), request ); >+ LifeCycleServiceHandler.clearSessionStore(); >+ } catch( Exception e ) { >+ e.printStackTrace(); >+ exception[ 0 ] = e; >+ } >+ } >+ }; >+ >+ Thread[] threads = Fixture.startThreads( 200, runnable ); >+ Fixture.joinThreads( threads ); >+ >+ assertNull( exception[ 0 ] ); >+ } > > protected void setUp() { > Fixture.setUp();
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 354368
:
204804
|
211281
|
211324
|
211325
|
211333