Results 1 to 4 of 4

Thread: Client side problem while deserialization using HttpInvoker

  1. #1

    Default Client side problem while deserialization using HttpInvoker

    Hi all,

    I need to use HttpInvoker in order to access remote services from my Spring RCP application.

    First at all, I tried ACEGI authentication using my remote authentication service exposed throw HttpInvoker. Once the response is back the following exception is raised:

    Code:
    org.springframework.remoting.RemoteAccessException: Cannot deserialize result from HTTP invoker remote service [http://127.0.0.1:8080/sies-jsf-war-1.0-SNAPSHOT/remoting/AuthenticationService]; nested exception is java.lang.ClassNotFoundException: [Lorg.acegisecurity.GrantedAuthority;
    Caused by: java.lang.ClassNotFoundException: [Lorg.acegisecurity.GrantedAuthority;
    	at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    	at org.springframework.remoting.rmi.CodebaseAwareObjectInputStream.resolveClass(CodebaseAwareObjectInputStream.java:99)
    	at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575)
    	at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
    	at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1624)
    	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1323)
    	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1945)
    	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1869)
    	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
    	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
    	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
    	at org.springframework.remoting.httpinvoker.AbstractHttpInvokerRequestExecutor.doReadRemoteInvocationResult(AbstractHttpInvokerRequestExecutor.java:291)
    	at org.springframework.remoting.httpinvoker.AbstractHttpInvokerRequestExecutor.readRemoteInvocationResult(AbstractHttpInvokerRequestExecutor.java:240)
    	at org.springframework.remoting.httpinvoker.SimpleHttpInvokerRequestExecutor.doExecuteRequest(SimpleHttpInvokerRequestExecutor.java:65)
    	at org.springframework.remoting.httpinvoker.AbstractHttpInvokerRequestExecutor.executeRequest(AbstractHttpInvokerRequestExecutor.java:134)
    	at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.executeRequest(HttpInvokerClientInterceptor.java:162)
    	at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.invoke(HttpInvokerClientInterceptor.java:139)
    	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
    	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:210)
    	at $Proxy0.attemptAuthentication(Unknown Source)
    	at org.acegisecurity.providers.rcp.RemoteAuthenticationProvider.authenticate(RemoteAuthenticationProvider.java:61)
    	at org.acegisecurity.providers.ProviderManager.doAuthentication(ProviderManager.java:188)
    	at org.acegisecurity.AbstractAuthenticationManager.authenticate(AbstractAuthenticationManager.java:45)
    	at org.springframework.richclient.security.support.DefaultApplicationSecurityManager.doLogin(DefaultApplicationSecurityManager.java:160)
    	at org.springframework.richclient.security.LoginCommand$1.onFinish(LoginCommand.java:133)
    	at org.springframework.richclient.dialog.ApplicationDialog$3.doExecuteCommand(ApplicationDialog.java:402)
    	at org.springframework.richclient.command.ActionCommand.execute(ActionCommand.java:192)
    	at org.springframework.richclient.command.ActionCommand$1.actionPerformed(ActionCommand.java:123)
    	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
    	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
    	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
    	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
    	at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
    	at javax.swing.plaf.basic.BasicRootPaneUI$Actions.actionPerformed(BasicRootPaneUI.java:191)
    	at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1636)
    	at javax.swing.JComponent.processKeyBinding(JComponent.java:2844)
    	at javax.swing.KeyboardManager.fireBinding(KeyboardManager.java:267)
    	at javax.swing.KeyboardManager.fireKeyboardAction(KeyboardManager.java:216)
    	at javax.swing.JComponent.processKeyBindingsForAllComponents(JComponent.java:2921)
    	at javax.swing.JComponent.processKeyBindings(JComponent.java:2913)
    	at javax.swing.JComponent.processKeyEvent(JComponent.java:2807)
    	at java.awt.Component.processEvent(Component.java:5815)
    	at java.awt.Container.processEvent(Container.java:2058)
    	at java.awt.Component.dispatchEventImpl(Component.java:4410)
    	at java.awt.Container.dispatchEventImpl(Container.java:2116)
    	at java.awt.Component.dispatchEvent(Component.java:4240)
    	at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1848)
    	at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:693)
    	at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:958)
    	at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:830)
    	at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:657)
    	at java.awt.Component.dispatchEventImpl(Component.java:4282)
    	at java.awt.Container.dispatchEventImpl(Container.java:2116)
    	at java.awt.Window.dispatchEventImpl(Window.java:2429)
    	at java.awt.Component.dispatchEvent(Component.java:4240)
    	at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
    	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
    	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
    	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:177)
    	at java.awt.Dialog$1.run(Dialog.java:1039)
    	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    	at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
    	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
    	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
    	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
    	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
    	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
    	at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
    Note the following:
    • Exposing the same service using RMI everything works.
    • I'm using jdk1.6.0_01, switching to jdk1.5 works by it's not a solution.

  2. #2
    Join Date
    Aug 2007
    Posts
    1

    Default org.springframework.remoting.RemoteAccessException

    Hi,

    I have been experiencing similar kind of exception. Did you resolve the error?
    Plz help.

    Thanks,
    Sid

  3. #3

    Default

    Sorry, I haven't resolved the issue yet. To be honest I have switched to jdk5 in order to test my configurations.
    As soon as I resolve the problem I will post the solution...

  4. #4
    Join Date
    Jun 2006
    Posts
    27

    Default

    I've the some issue with jdk 1.6 and jdk 1.7 but not with jdk 1.5


    anyone has a sollution ????

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •