We want to create amazing apps without being stopped by crashes. Join us to help others who have the same bug.

I want to fix my crash

I want to help others

java.lang.IllegalStateException: Failed to find 'public static final SpringClassRule' field in test class [com.example.unit.testing.application.PlacingOrderTest$WithExistingCustomer]. Consult the javadoc for SpringClassRule for details.

java.lang.IllegalStateException: Failed to find 'public static final SpringClassRule' field in test class [com.example.unit.testing.application.PlacingOrderTest$WithExistingCustomer]. Consult the javadoc for SpringClassRule for details.

java.lang.IllegalStateException: Failed to find 'public static final SpringClassRule' field in test class [com.example.unit.testing.application.PlacingOrderTest$WithExistingCustomer]. Consult the javadoc for SpringClassRule for details.

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in resource loaded from byte array: Cannot resolve reference to bean 'blPersistenceUnitManager' while setting bean property 'persistenceUnitManager'; nested e$
[org.broadleafcommerce.common.currency.domain.BroadleafCurrencyImpl, org.broadleafcommerce.common.locale.domain.LocaleImpl, org.broadleafcommerce.common.currency.domain.BroadleafCurrencyImpl]
are managed classes within the MergePersistenceUnitManager
but were not detected as being transformed by the EntityMarkerClassTransformer. These
classes are likely loaded earlier in the application startup lifecyle by the servlet
container. Verify that an empty <absolute-ordering /> element is contained in your
web.xml to disable scanning for ServletContainerInitializer classes by your servlet
container which can trigger early class loading. If the problem persists, ensure that
there are no bean references to your entity class anywhere else in your Spring applicationContext
and consult the documentation for your servlet container to determine if classes are loaded
prior to the Spring context initialization.

java.lang.IllegalStateException: The context has been disposed.
but only if i try to refresh a browser window after more than 30sekonds
(session timeout?)
i think its a wrong approach in my app but i do not know where.
thanks for any suggestions
phil
Philipp Mohrenweiser schrieb:
> Ok a little bit reading and i got it myself. i was using a singleton i
> implemented myself... so it did not create another one but used the
> same.. using SessionSingletonBase solved the problem.
>
>
> public class MySingleton extends SessionSingletonBase {
> public static MySingleton getInstance() {
> return (MySingleton)getInstance(MySingleton.class);
> }
> // all the other stuff comes here
> }
>
> I found it in the book Eclipse Rich Ajax Platform but nowhere in the
> web, could someone tell me where to find such things ? i would also like
> to collect and publish them in some wiki, the rap wiki seems to be a
> good idea?
>
> thanks phil
>
>
>
> Philipp Mohrenweiser schrieb:
Hello,
I tried to implement a simple JAAS Callback Handler from the JAAS
Tutorial with RAP. I got many things working. But i have a stange
behavior if i try to open a second browser window (another session):
The first time i request the URI i yust get a blank workbench, the
second time the server goes into a exception loop (see end of post)
I am not sure what i did wrong i think it is no bug in rwt i think its
the way i am working with it.
as far as i understand i should try to make sure aother session gets
created for the other browser window. i thought its done but if i
change the asyncexec call into an synced exec call i got other
exceptions.
Can you tell me where the new session is created, so i could try to do
this explicitly and the display i use to show my jaashandlerdialog
would perhabs use the right one.
And is there any further documentation where i could find such topics?
sincerely philipp a. mohrenweiser.
async run:
Authentication failed:
org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$UIThreadTerm inatedError
at
org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.sleep(RWTLif eCycle.java:303)

Root Cause Analysis

java.lang.IllegalStateException

Failed to find 'public static final SpringClassRule' field in test class [com.example.unit.testing.application.PlacingOrderTest$WithExistingCustomer]. Consult the javadoc for SpringClassRule for details.

at org.springframework.test.context.junit4.rules.SpringMethodRule.validateSpringClassRuleConfiguration()