Raible's Wiki

Raible Designs
Wiki Home
News
Recent Changes

AppFuse

Homepage
  - Korean
  - Chinese
  - Italian
  - Japanese

QuickStart Guide
  - Chinese
  - French
  - German
  - Italian
  - Korean
  - Portuguese
  - Spanish
  - Japanese

User Guide
  - Korean
  - Chinese

Tutorials
  - Chinese
  - German
  - Italian
  - Korean
  - Portuguese
  - Spanish

FAQ
  - Korean

Latest Downloads

Other Applications

Struts Resume
Security Example
Struts Menu

Set your name in
UserPreferences


Referenced by
Articles
Articles_de
Articles_pt
Articles_zh




JSPWiki v2.2.33

[RSS]


Hide Menu

RichClient


Difference between version 35 and version 32:

At line 184 changed 1 line.
TODO: (Currently in ML message "[Integrating Spring Rich Client with Appfuse | https://appfuse.dev.java.net/servlets/ReadMsg?listName=users&msgNo=8460]"- today I have no more energy ;)
** On successfull login is thrown Exception ClassNotFoundException: net.sf.acegisecurity.context.SecureContextImpl
** on __userManager.getUsers(null)__ exception :
org.hibernate.LazyInitializationException
At line 188 added 110 lines.
!! ClassNotFoundException
Username is not yet crypted so I recomend to add new user to your database with __username__:test, __password__:test.
On unsuccessful login everything is OK and is shown "Bad Credentials" message.
On unsuccessfull login is thrown exception - In each appfusem 1.8 is in classpath included __lib\spring-1.2-rc2\acegi-security-0.8.2.jar__ which contains net.sf.acegisecurity.context.security.__SecureContextImpl__ class so I dont know where should be the problem :(
<div style="margin-left: 40px">
{{{
java.lang.NoClassDefFoundError
at org.springframework.richclient.security.SessionDetails.class$(SessionDetails.java:97)
at org.springframework.richclient.security.SessionDetails.getSecureContextClass(SessionDetails.java:97)
at org.springframework.richclient.security.SessionDetails.login(SessionDetails.java:110)
at org.springframework.richclient.security.LoginForm.commit(LoginForm.java:57)
at org.springframework.richclient.security.LoginCommand$1.onFinish(LoginCommand.java:79)
at org.springframework.richclient.dialog.ApplicationDialog$1.doExecuteCommand(ApplicationDialog.java:322)
at org.springframework.richclient.command.ActionCommand.execute(ActionCommand.java:188)
at org.springframework.richclient.command.ActionCommand$1.actionPerformed(ActionCommand.java:123)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.Dialog$1.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: net.sf.acegisecurity.context.SecureContextImpl
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
... 37 more
}}}
</div>
!! LazyInitializationException
<div style="margin-left: 40px">
{{{
org.hibernate.LazyInitializationException: failed to lazily initialize a collection - no session or session was closed
at org.hibernate.collection.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:180)
at org.hibernate.collection.AbstractPersistentCollection.write(AbstractPersistentCollection.java:61)
at org.hibernate.collection.PersistentSet.add(PersistentSet.java:158)
at com.caucho.hessian.io.CollectionDeserializer.readList(CollectionDeserializer.java:97)
at com.caucho.hessian.io.HessianInput.readObject(HessianInput.java:674)
at com.caucho.hessian.io.JavaDeserializer.readMap(JavaDeserializer.java:135)
at com.caucho.hessian.io.JavaDeserializer.readMap(JavaDeserializer.java:114)
at com.caucho.hessian.io.SerializerFactory.readMap(SerializerFactory.java:147)
at com.caucho.hessian.io.HessianInput.readObject(HessianInput.java:781)
at com.caucho.hessian.io.CollectionDeserializer.readList(CollectionDeserializer.java:97)
at com.caucho.hessian.io.HessianInput.readObject(HessianInput.java:678)
at com.caucho.hessian.io.HessianInput.readReply(HessianInput.java:241)
at com.caucho.hessian.client.HessianProxy.invoke(HessianProxy.java:179)
at $Proxy0.getUsers(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.remoting.caucho.HessianClientInterceptor.invoke(HessianClientInterceptor.java:115)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174)
at $Proxy1.getUsers(Unknown Source)
at org.appfuse.richclient.ui.OwnerManagerView.createOwnerManagerTree(OwnerManagerView.java:127)
at org.appfuse.richclient.ui.OwnerManagerView.createControl(OwnerManagerView.java:117)
at org.springframework.richclient.factory.AbstractControlFactory.getControl(AbstractControlFactory.java:48)
at org.springframework.richclient.application.support.DefaultApplicationPage.createPageComponent(DefaultApplicationPage.java:71)
at org.springframework.richclient.application.support.AbstractApplicationPage.showView(AbstractApplicationPage.java:155)
at org.springframework.richclient.application.support.AbstractApplicationPage.showView(AbstractApplicationPage.java:186)
at org.springframework.richclient.application.support.DefaultApplicationPage.addView(DefaultApplicationPage.java:78)
at org.springframework.richclient.application.support.SingleViewPageDescriptor.buildInitialLayout(SingleViewPageDescriptor.java:60)
at org.springframework.richclient.application.support.DefaultApplicationPage.getControl(DefaultApplicationPage.java:45)
at org.springframework.richclient.application.support.DefaultApplicationWindow.applyCustomLayout(DefaultApplicationWindow.java:235)
at org.springframework.richclient.application.support.DefaultApplicationWindow.initWindowControl(DefaultApplicationWindow.java:220)
at org.springframework.richclient.application.support.DefaultApplicationWindow.initWindow(DefaultApplicationWindow.java:210)
at org.springframework.richclient.application.support.DefaultApplicationWindow.showPage(DefaultApplicationWindow.java:151)
at org.springframework.richclient.application.Application.openWindow(Application.java:163)
at org.springframework.richclient.application.ApplicationLauncher.launchMyRichClient(ApplicationLauncher.java:178)
at org.springframework.richclient.application.ApplicationLauncher.<init>(ApplicationLauncher.java:100)
at org.appfuse.richclient.PetClinicClientServer.main(PetClinicClientServer.java:41)
}}}
</div>

Back to RichClient, or to the Page History.