Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Riena » missing SessionStore
missing SessionStore [message #582223] Thu, 07 May 2009 17:40
RRK is currently offline RRKFriend
Messages: 21
Registered: July 2009
Junior Member
Hello,

with somewhat modified copy off sample.app.server and
security.simpleservices I try to login from a client application.
I'm not experienced in dealing with OSGi and Riena. All I found was that
in AuthenticationService a Session should be created from
SessionService.generateSession but store is null. I don't know what's
wrong. Below status off the server and error log.

RĂ¼diger




07.05.2009 18:01:06 org.mortbay.http.HttpServer doStart
INFO: Version Jetty/5.1.x
07.05.2009 18:01:07 org.mortbay.util.Container start
INFO: Started
org.eclipse.equinox.http.jetty.internal.Servlet25Handler@16fdcc1
07.05.2009 18:01:07 org.mortbay.util.Container start
INFO: Started HttpContext[/,/]
07.05.2009 18:01:07 org.mortbay.http.SocketListener start
INFO: Started SocketListener on 0.0.0.0:8080
07.05.2009 18:01:07 org.mortbay.util.Container start
INFO: Started org.mortbay.http.HttpServer@704cf5
07.05.2009 18:01:11 org.mortbay.jetty.servlet.ServletHandler$Context log
INFO:
org.eclipse.equinox.http.registry.internal.ServletManager$Se rvletWrapper:
call protocol=hessian,
url=http://192.168.178.20:8080/hessian/AuthenticationService,
interface=org.eclipse.riena.security.common.authentication.I AuthenticationService
2009.05.07 18:02:05 CEST rrk@rrk-211305ebe29 DEBUG [SocketListener0-1]
de.psgl400.server.security.authentication.loginmodule.Server LoginModule
remote login() : testuser
2009.05.07 18:02:05 CEST rrk@rrk-211305ebe29 DEBUG [SocketListener0-1]
de.psgl400.server.security.authentication.loginmodule.Server LoginModule
remote login password ok = true
2009.05.07 18:02:52 CEST rrk@rrk-211305ebe29 DEBUG [SocketListener0-1]
de.psgl400.server.security.authentication.loginmodule.Server LoginModule
after commit subject.getPrincipals().add(new SimplePrincipal(username))
: testuser
ss

Framework is launched.

id State Bundle
0 ACTIVE org.eclipse.osgi_3.5.0.v20090311-1300
Fragments=4
1 ACTIVE org.eclipse.riena.security.services_1.1.0.M6
2 ACTIVE org.eclipse.riena.communication.core_1.1.0.M6
3 ACTIVE org.eclipse.riena.core_1.1.0.M6
4 RESOLVED org.eclipse.equinox.transforms.hook_1.0.100.v20090306-1900
Master=0
5 ACTIVE org.eclipse.riena.communication.publisher.hessian_1.1.0.M6
6 ACTIVE org.mortbay.jetty_5.1.14.v200806031611
7 ACTIVE org.apache.commons.logging_1.0.4.v20080605-1930
8 ACTIVE org.eclipse.equinox.app_1.2.0.v20090306-1900
9 ACTIVE org.eclipse.core.runtime.compatibility.auth_3.2.100.v2007050 2
10 ACTIVE org.eclipse.riena.server_1.1.0.M6
11 ACTIVE de.psgl400.server_1.0.0
12 ACTIVE org.eclipse.equinox.common_3.5.0.v20090310-1800
13 ACTIVE de.psgl400.server.security_1.0.0
14 ACTIVE org.eclipse.riena.security.common_1.1.0.M6
15 ACTIVE org.eclipse.core.contenttype_3.4.0.v20090302
16 ACTIVE org.eclipse.core.variables_3.2.200.v20090302-1500
17 ACTIVE org.eclipse.equinox.http.registry_1.0.200.v20090306-1900
18 ACTIVE org.eclipse.core.jobs_3.4.100.v20090213
19 ACTIVE org.eclipse.equinox.http.servlet_1.0.200.v20090306-1900
20 ACTIVE org.eclipse.riena.communication.factory.hessian_1.1.0.M6
21 ACTIVE de.psgl400.core_1.0.0
22 ACTIVE org.eclipse.equinox.security_1.0.100.v20090306-1900
Fragments=27
23 ACTIVE com.caucho.hessian_3.1.3
24 ACTIVE javax.servlet_2.4.0.v200806031604
25 ACTIVE org.eclipse.core.runtime_3.5.0.v20090306
26 ACTIVE org.eclipse.riena.communication.publisher_1.1.0.M6
27 RESOLVED org.eclipse.equinox.security.win32.x86_1.0.100.v20090306-190 0
Master=22
28 ACTIVE org.eclipse.osgi.services_3.2.0.v20090306-1900
29 ACTIVE org.eclipse.riena.communication.console_1.1.0.M6
30 ACTIVE org.eclipse.equinox.log_1.1.0.v20090223-1400
31 ACTIVE org.eclipse.riena.security.server_1.1.0.M6
32 ACTIVE org.eclipse.equinox.registry_3.4.100.v20090306-1900
33 ACTIVE org.eclipse.equinox.preferences_3.2.300.v20090306-1900
34 ACTIVE org.apache.log4j_1.2.8.v200706111329
35 ACTIVE org.eclipse.equinox.http.jetty_1.1.100.v20090306-1900

osgi> s
Framework is launched.

id Bundle Location
State Bundle File Name
0 System Bundle
ACTIVE org.eclipse.osgi_3.5.0.v20090311-1300
1 initial@reference:file:org.eclipse.riena.security.services_1.1.0.M6.jar/
ACTIVE org.eclipse.riena.security.services_1.1.0.M6
2 initial@reference:file:org.eclipse.riena.communication.core_1.1.0.M6.jar/
ACTIVE org.eclipse.riena.communication.core_1.1.0.M6
3 initial@reference:file:org.eclipse.riena.core_1.1.0.M6.jar/
ACTIVE org.eclipse.riena.core_1.1.0.M6
4
initial@reference :file:org.eclipse.equinox.transforms.hook_1.0.100.v20090306- 1900.jar/
RESOLVED org.eclipse.equinox.transforms.hook_1.0.100.v20090306-1900
5
initial@reference :file:org.eclipse.riena.communication.publisher.hessian_1.1. 0.M6.jar/
ACTIVE org.eclipse.riena.communication.publisher.hessian_1.1.0.M6
6 initial@reference:file:org.mortbay.jetty_5.1.14.v200806031611.jar/
ACTIVE org.mortbay.jetty_5.1.14.v200806031611
7
initial@reference:file:org.apache.commons.logging_1.0.4.v20080605-1930.jar/
ACTIVE org.apache.commons.logging_1.0.4.v20080605-1930
8 initial@reference:file:org.eclipse.equinox.app_1.2.0.v20090306-1900.jar/
ACTIVE org.eclipse.equinox.app_1.2.0.v20090306-1900
9
initial@reference :file:org.eclipse.core.runtime.compatibility.auth_3.2.100.v2 0070502.jar/
ACTIVE org.eclipse.core.runtime.compatibility.auth_3.2.100.v2007050 2
10 initial@reference:file:org.eclipse.riena.server_1.1.0.M6.jar/
ACTIVE org.eclipse.riena.server_1.1.0.M6
11 initial@reference:file:../../../projekte/work/psgl/de.psgl400.server/
ACTIVE de.psgl400.server_1.0.0
12
initial@reference:file:org.eclipse.equinox.common_3.5.0.v20090310-1800.jar/
ACTIVE org.eclipse.equinox.common_3.5.0.v20090310-1800
13
initial@reference :file:../../../projekte/work/psgl/de.psgl400.server.security /
ACTIVE de.psgl400.server.security_1.0.0
14 initial@reference:file:org.eclipse.riena.security.common_1.1.0.M6.jar/
ACTIVE org.eclipse.riena.security.common_1.1.0.M6
15 initial@reference:file:org.eclipse.core.contenttype_3.4.0.v20090302.jar/
ACTIVE org.eclipse.core.contenttype_3.4.0.v20090302
16
initial@reference :file:org.eclipse.core.variables_3.2.200.v20090302-1500.jar/
ACTIVE org.eclipse.core.variables_3.2.200.v20090302-1500
17
initial@reference :file:org.eclipse.equinox.http.registry_1.0.200.v20090306-19 00.jar/
ACTIVE org.eclipse.equinox.http.registry_1.0.200.v20090306-1900
18 initial@reference:file:org.eclipse.core.jobs_3.4.100.v20090213.jar/
ACTIVE org.eclipse.core.jobs_3.4.100.v20090213
19
initial@reference :file:org.eclipse.equinox.http.servlet_1.0.200.v20090306-190 0.jar/
ACTIVE org.eclipse.equinox.http.servlet_1.0.200.v20090306-1900
20
initial@reference :file:org.eclipse.riena.communication.factory.hessian_1.1.0. M6.jar/
ACTIVE org.eclipse.riena.communication.factory.hessian_1.1.0.M6
21 initial@reference:file:../../../projekte/work/psgl/de.psgl400.core/
ACTIVE de.psgl400.core_1.0.0
22
initial@reference :file:org.eclipse.equinox.security_1.0.100.v20090306-1900.ja r/
ACTIVE org.eclipse.equinox.security_1.0.100.v20090306-1900
23 initial@reference:file:com.caucho.hessian_3.1.3.jar/
ACTIVE com.caucho.hessian_3.1.3
24 initial@reference:file:javax.servlet_2.4.0.v200806031604.jar/
ACTIVE javax.servlet_2.4.0.v200806031604
25 initial@reference:file:org.eclipse.core.runtime_3.5.0.v20090306.jar/
ACTIVE org.eclipse.core.runtime_3.5.0.v20090306
26
initial@reference :file:org.eclipse.riena.communication.publisher_1.1.0.M6.jar /
ACTIVE org.eclipse.riena.communication.publisher_1.1.0.M6
27
initial@reference :file:org.eclipse.equinox.security.win32.x86_1.0.100.v200903 06-1900.jar/
RESOLVED org.eclipse.equinox.security.win32.x86_1.0.100.v20090306-190 0
28
initial@reference:file:org.eclipse.osgi.services_3.2.0.v20090306-1900.jar/
ACTIVE org.eclipse.osgi.services_3.2.0.v20090306-1900
29
initial@reference:file:org.eclipse.riena.communication.console_1.1.0.M6.jar/
ACTIVE org.eclipse.riena.communication.console_1.1.0.M6
30 initial@reference:file:org.eclipse.equinox.log_1.1.0.v20090223-1400.jar/
ACTIVE org.eclipse.equinox.log_1.1.0.v20090223-1400
31 initial@reference:file:org.eclipse.riena.security.server_1.1.0.M6.jar/
ACTIVE org.eclipse.riena.security.server_1.1.0.M6
32
initial@reference :file:org.eclipse.equinox.registry_3.4.100.v20090306-1900.ja r/
ACTIVE org.eclipse.equinox.registry_3.4.100.v20090306-1900
33
initial@reference :file:org.eclipse.equinox.preferences_3.2.300.v20090306-1900 .jar/
ACTIVE org.eclipse.equinox.preferences_3.2.300.v20090306-1900
34 initial@reference:file:org.apache.log4j_1.2.8.v200706111329.jar/
ACTIVE org.apache.log4j_1.2.8.v200706111329
35
initial@reference :file:org.eclipse.equinox.http.jetty_1.1.100.v20090306-1900. jar/
ACTIVE org.eclipse.equinox.http.jetty_1.1.100.v20090306-1900
Registered Services
{org.eclipse.osgi.framework.console.CommandProvider}={servic e.ranking=2147483647,
service.id=2}
{org.osgi.service.packageadmin.PackageAdmin}={service.rankin g=2147483647,
service.pid=0.org.eclipse.osgi.framework.internal.core.Packa geAdminImpl,
service.vendor=Eclipse.org - Equinox, service.id=3}
{org.osgi.service.permissionadmin.PermissionAdmin,
org.osgi.service.condpermadmin.ConditionalPermissionAdmin}={ service.ranking=2147483647,
service.pid=0.org.eclipse.osgi.internal.permadmin.SecurityAd min,
service.vendor=Eclipse.org - Equinox, service.id=4}
{org.osgi.service.startlevel.StartLevel}={service.ranking=21 47483647,
service.pid=0.org.eclipse.osgi.framework.internal.core.Start LevelManager,
service.vendor=Eclipse.org - Equinox, service.id=5}
{org.eclipse.osgi.service.debug.DebugOptions}={service.ranki ng=2147483647,
service.pid=0.org.eclipse.osgi.framework.debug.FrameworkDebu gOptions,
service.vendor=Eclipse.org - Equinox, service.id=6}
{java.lang.ClassLoader}={service.ranking=2147483647,
service.pid=0.org.eclipse.core.runtime.internal.adaptor.Cont extFinder,
service.vendor=Eclipse.org - Equinox,
equinox.classloader.type=contextClassLoader, service.id=7}
{org.eclipse.osgi.framework.log.FrameworkLog}={service.ranki ng=2147483647,
service.pid=0.org.eclipse.core.runtime.adaptor.EclipseLog,
service.vendor=Eclipse.org - Equinox, service.id=8}
{org.eclipse.osgi.service.environment.EnvironmentInfo}={serv ice.ranking=2147483647,
service.pid=0.org.eclipse.core.runtime.internal.adaptor.Ecli pseEnvironmentInfo,
service.vendor=Eclipse.org - Equinox, service.id=18}
{org.eclipse.osgi.service.resolver.PlatformAdmin}={service.r anking=2147483647,
service.pid=0.org.eclipse.osgi.internal.baseadaptor.StateMan ager,
service.vendor=Eclipse.org - Equinox, service.id=19}
{org.eclipse.osgi.service.pluginconversion.PluginConverter}= {service.ranking=2147483647,
service.pid=0.org.eclipse.core.runtime.internal.adaptor.Plug inConverterImpl,
service.vendor=Eclipse.org - Equinox, service.id=20}
{org.eclipse.osgi.framework.console.CommandProvider}={servic e.ranking=2147483647,
service.pid=0.org.eclipse.core.runtime.internal.adaptor.Ecli pseCommandProvider,
service.vendor=Eclipse.org - Equinox, service.id=21}
{org.eclipse.osgi.service.localization.BundleLocalization}={ service.ranking=2147483647,
service.pid=0.org.eclipse.core.runtime.internal.adaptor.Bund leLocalizationImpl,
service.vendor=Eclipse.org - Equinox, service.id=22}
{javax.xml.parsers.SAXParserFactory}={service.id=10}
{javax.xml.parsers.DocumentBuilderFactory}={service.id=11}
{org.eclipse.osgi.service.datalocation.Location}={type=osgi. user.area,
service.id=12}
{org.eclipse.osgi.service.datalocation.Location}={type=osgi. instance.area,
service.id=13}
{org.eclipse.osgi.service.datalocation.Location}={type=osgi. configuration.area,
service.id=14}
{org.eclipse.osgi.service.datalocation.Location}={type=osgi. install.area,
service.id=15}
{org.eclipse.osgi.service.datalocation.Location}={type=eclip se.home.location,
service.id=16}
{org.eclipse.osgi.service.urlconversion.URLConverter}={proto col=[bundleentry,bundleresource],
service.id=17}
{org.eclipse.osgi.signedcontent.SignedContentFactory}={servi ce.id=24}
{org.eclipse.osgi.internal.provisional.verifier.CertificateV erifierFactory}={service.id=25}
{org.osgi.service.framework.CompositeBundleFactory}={service .id=26}
{org.eclipse.osgi.service.urlconversion.URLConverter}={proto col=platform,
service.id=27}
{org.eclipse.core.runtime.IAdapterManager}={service.id=28}
{org.osgi.service.url.URLStreamHandlerService}={url.handler. protocol=[platform],
service.id=29}
{org.eclipse.core.internal.preferences.exchange.IProductPref erencesService}={service.id=30}
{org.eclipse.core.runtime.preferences.IPreferencesService}={ service.id=31}
{org.osgi.service.prefs.PreferencesService}={service.id=32}
{org.eclipse.core.runtime.jobs.IJobManager}={service.id=33}
{org.eclipse.core.runtime.IExtensionRegistry}={service.id=34 }
{org.eclipse.osgi.framework.console.CommandProvider}={servic e.id=35}
{org.osgi.service.application.ApplicationDescriptor}={eclips e.application.type=main.thread,
application.name=, application.visible=false,
application.container=org.eclipse.equinox.app,
service.pid=org.eclipse.equinox.app.error, application.launchable=true,
application.locked=false,
application.location=initial@reference:file:org.eclipse.equinox.app_1.2.0.v20090306-1900.jar/,
service.id=36}
{org.eclipse.osgi.framework.console.CommandProvider}={servic e.id=37}
{org.eclipse.riena.security.common.session.ISessionHolderSer vice}={service.id=40}
{org.osgi.service.log.LogReaderService,
org.eclipse.equinox.log.ExtendedLogReaderService}={service.i d=42}
{org.osgi.service.log.LogService,
org.eclipse.equinox.log.ExtendedLogService}={service.id=43}
{org.eclipse.riena.communication.core.progressmonitor.IRemot eProgressMonitorRegistry}={service.id=44}
{org.eclipse.riena.communication.core.hooks.ICallHook}={serv ice.id=45}
{org.eclipse.riena.security.common.ISubjectHolderService}={s ervice.id=46}
{org.eclipse.riena.security.common.authorization.IPermission Cache}={service.id=47}
{org.eclipse.riena.core.cache.IGenericObjectCache}={cache.ty pe=PrincipalCache,
service.id=50}
{org.eclipse.riena.communication.core.hooks.IServiceHook}={s ervice.id=51}
{de.psgl400.core.service.IHelloWorldService}={riena.remote.p rotocol=hessian,
riena.remote.path=/HelloWorldServiceWS, riena.remote=true, service.id=56}
{org.eclipse.core.runtime.content.IContentTypeManager}={serv ice.id=57}
{org.eclipse.equinox.http.registry.HttpContextExtensionServi ce}={service.id=58}
{org.eclipse.riena.communication.core.publisher.IServicePubl ishBinder}={service.id=59}
{org.eclipse.osgi.framework.console.CommandProvider}={servic e.id=60}
{org.osgi.service.http.HttpService}={service.description=Equ inox
Jetty-based Http Service, http.port=8080, service.vendor=Eclipse.org,
service.id=61}
{org.osgi.service.cm.ManagedServiceFactory}={service.pid=org .eclipse.equinox.http.jetty.config,
service.id=62}
{org.eclipse.riena.internal.core.logging.LoggerMill}={servic e.ranking=-100,
service.id=38}
{org.eclipse.riena.core.exception.IExceptionHandlerManager}= {service.ranking=-100,
service.id=39}
{org.eclipse.riena.communication.core.IRemoteServiceRegistry }={service.ranking=-100,
service.id=41}
{org.eclipse.riena.security.common.authorization.ISentinelSe rvice}={service.ranking=-100,
service.id=48}
{org.eclipse.riena.security.common.authentication.IAuthentic ationService}={service.ranking=-100,
riena.remote.protocol=hessian, riena.remote=true,
riena.remote.path=/AuthenticationService, service.id=49}
{org.eclipse.riena.security.common.authorization.IAuthorizat ionService}={service.ranking=-100,
riena.remote.protocol=hessian, riena.remote=true,
riena.remote.path=/AuthorizationService, service.id=52}
{org.eclipse.riena.security.server.session.ISessionService}= {service.ranking=-100,
riena.remote.protocol=hessian, riena.remote=true,
riena.remote.path=/SessionService, service.id=53}
{org.eclipse.riena.security.sessionservice.ISessionProvider} ={service.ranking=-100,
service.id=54}
{org.eclipse.riena.communication.core.publisher.IServicePubl isher}={service.ranking=-100,
riena.protocol=hessian, service.id=55}
{org.eclipse.osgi.service.runnable.StartupMonitor}={service. ranking=-2147483648,
service.id=1}
{org.eclipse.osgi.framework.log.FrameworkLog}={service.ranki ng=-2147483648,
performance=true,
service.pid=46org.eclipse.core.runtime.adaptor.EclipseLog,
service.vendor=Eclipse.org - Equinox, service.id=9}
{org.eclipse.osgi.service.security.TrustEngine}={service.ran king=-2147483648,
osgi.signedcontent.trust.engine=org.eclipse.osgi, service.id=23}

osgi> 07.05.2009 18:14:18 com.caucho.hessian.server.HessianSkeleton invoke
WARNUNG: java.lang.NullPointerException
java.lang.NullPointerException
at
org.eclipse.riena.internal.security.sessionservice.SessionSe rvice.generateSession(SessionService.java:87)
at
org.eclipse.riena.internal.security.authenticationservice.Au thenticationService.login(AuthenticationService.java:137)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.eclipse.riena.communication.core.hooks.AbstractHooksProx y.invoke(AbstractHooksProxy.java:69)
at
org.eclipse.riena.communication.core.hooks.AbstractHooksProx y.invoke(AbstractHooksProxy.java:38)
at
org.eclipse.riena.internal.communication.publisher.ServiceHo oksProxy.invoke(ServiceHooksProxy.java:70)
at $Proxy10.login(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
com.caucho.hessian.server.HessianSkeleton.invoke(HessianSkel eton.java:155)
at
org.eclipse.riena.communication.publisher.hessian.RienaHessi anDispatcherServlet.service(RienaHessianDispatcherServlet.ja va:148)
at
org.eclipse.equinox.http.registry.internal.ServletManager$Se rvletWrapper.service(ServletManager.java:180)
at
org.eclipse.equinox.http.servlet.internal.ServletRegistratio n.handleRequest(ServletRegistration.java:90)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.proce ssAlias(ProxyServlet.java:111)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.servi ce(ProxyServlet.java:67)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at
org.eclipse.equinox.http.jetty.internal.HttpServerManager$In ternalHttpServiceServlet.service(HttpServerManager.java:269)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder .java:428)
at
org.mortbay.jetty.servlet.ServletHandler.dispatch(ServletHan dler.java:677)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandl er.java:568)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
at org.mortbay.http.HttpServer.service(HttpServer.java:909)
at org.mortbay.http.HttpConnection.service(HttpConnection.java: 820)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.ja va:986)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:8 37)
at
org.mortbay.http.SocketListener.handleConnection(SocketListe ner.java:245)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:3 57)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:5 34)
Previous Topic:1.1.0.M7 delayed
Next Topic:ObjectTransaction
Goto Forum:
  


Current Time: Thu Oct 28 01:54:50 GMT 2021

Powered by FUDForum. Page generated in 0.06468 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top