Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Riena » missing SessionStore
missing SessionStore [message #25402] Thu, 07 May 2009 17:40 Go to next message
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)
Re: missing SessionStore [message #25492 is a reply to message #25402] Fri, 08 May 2009 05:49 Go to previous messageGo to next message
Carsten Spieker is currently offline Carsten SpiekerFriend
Messages: 197
Registered: July 2009
Senior Member
Hello R
Re: missing SessionStore [message #25533 is a reply to message #25492] Fri, 08 May 2009 07:31 Go to previous messageGo to next message
Christian Campo is currently offline Christian CampoFriend
Messages: 597
Registered: July 2009
Senior Member
Right, You have "somewhat modified" equinox.security.simpleservices but it does not show up in the list of installed
bundles. It is not added automatically if you do add required bundles because there is no direct dependencies....

Carsten already written down what I could have written any better :-)

christian


Carsten Spieker schrieb:
> Hello Rüdiger,
>
> I hope I understood your problem correctly.
>
> AFAIK the ISessionService implementation in
> org.eclipse.riena.security.services is bind to an implementation of
> ISessionStore (to store the former created session). This means any
> implementation of ISessionStore must be registered in your OSGi framework on
> server side. You could for example install bundle
> org.eclipse.riena.security.simpleservices in your server-side OSGi framework
> This bundle provides such a service implementation. The NullPointerException
> then should be solved.
>
> Hope this hint helps you.
>
> Greetz,
> Carsten
>
>
> "Rüdiger Rensinghoff-Kranen" <info@rensinghoff-kranen.de> schrieb im
> Newsbeitrag news:gtv6eb$ri1$1@build.eclipse.org...
>> 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)
>>
>
>
Re: missing SessionStore [message #25653 is a reply to message #25533] Fri, 08 May 2009 09:41 Go to previous messageGo to next message
RRK is currently offline RRKFriend
Messages: 21
Registered: July 2009
Junior Member
Christian Campo schrieb:
> Right, You have "somewhat modified" equinox.security.simpleservices but
> it does not show up in the list of installed bundles. It is not added
> automatically if you do add required bundles because there is no direct
> dependencies....
>
> Carsten already written down what I could have written any better :-)
>
> christian
>
>
> Carsten Spieker schrieb:
>> Hello Rüdiger,
>>
>> I hope I understood your problem correctly.
>>
>> AFAIK the ISessionService implementation in
>> org.eclipse.riena.security.services is bind to an implementation of
>> ISessionStore (to store the former created session). This means any
>> implementation of ISessionStore must be registered in your OSGi
>> framework on server side. You could for example install bundle
>> org.eclipse.riena.security.simpleservices in your server-side OSGi
>> framework This bundle provides such a service implementation. The
>> NullPointerException then should be solved.
>>
>> Hope this hint helps you.
>>
>> Greetz,
>> Carsten
>>
>>
>> "Rüdiger Rensinghoff-Kranen" <info@rensinghoff-kranen.de> schrieb im
>> Newsbeitrag news:gtv6eb$ri1$1@build.eclipse.org...
>>> 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)
>>>
>>
>>
Hello Carsten and Christian,

thanks for the fast reply. First de.psgl400.server.security_1.0.0 is a
copy of org.eclipse.riena.security.simpleservices Version 1.1.0.M6 and
it's ACTIVE. What I have changed is the LoginModul class. In
SampleLoginModule Properties accounts are initialized from a textfile.
I want to use Riena as a frontend to ERP serversystems I'm developing
for over 20 years. And I nead a verification and knowledge of the user
for my backend. Hence I filled accounts in initialize in the first step
hardcoded. Never the less if I bind riena.security.simpleservices
instead of my version I get the error at ServiceHooksProxy.java:70. When
debugging I come to AuthenticationService.login where
sessionService.generateSession(pArray) is called. And here store must
not be null but it is. Here I'm at the end of my proficiency and would
be glad you could help me.

Rüdiger
Re: missing SessionStore [message #25683 is a reply to message #25492] Fri, 08 May 2009 10:25 Go to previous messageGo to next message
RRK is currently offline RRKFriend
Messages: 21
Registered: July 2009
Junior Member
Carsten Spieker schrieb:
> Hello Rüdiger,
>
> I hope I understood your problem correctly.
>
> AFAIK the ISessionService implementation in
> org.eclipse.riena.security.services is bind to an implementation of
> ISessionStore (to store the former created session). This means any
> implementation of ISessionStore must be registered in your OSGi framework on
> server side. You could for example install bundle
> org.eclipse.riena.security.simpleservices in your server-side OSGi framework
> This bundle provides such a service implementation. The NullPointerException
> then should be solved.
>
> Hope this hint helps you.
>
> Greetz,
> Carsten
>
>
> "Rüdiger Rensinghoff-Kranen" <info@rensinghoff-kranen.de> schrieb im
> Newsbeitrag news:gtv6eb$ri1$1@build.eclipse.org...
>> 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)
>>
>
>
Hi Carsten,

I found my fault. There was no implementation of ISessionStore running.

thanks

Rüdiger
Re: missing SessionStore [message #25711 is a reply to message #25683] Fri, 08 May 2009 11:59 Go to previous messageGo to next message
Christian Campo is currently offline Christian CampoFriend
Messages: 597
Registered: July 2009
Senior Member
Rüdiger Rensinghoff-Kranen schrieb:
> Carsten Spieker schrieb:
>> Hello Rüdiger,
>>
>> I hope I understood your problem correctly.
>>
>> AFAIK the ISessionService implementation in
>> org.eclipse.riena.security.services is bind to an implementation of
>> ISessionStore (to store the former created session). This means any
>> implementation of ISessionStore must be registered in your OSGi
>> framework on server side. You could for example install bundle
>> org.eclipse.riena.security.simpleservices in your server-side OSGi
>> framework This bundle provides such a service implementation. The
>> NullPointerException then should be solved.
>>
>> Hope this hint helps you.
>>
>> Greetz,
>> Carsten
>>
>>
>> "Rüdiger Rensinghoff-Kranen" <info@rensinghoff-kranen.de> schrieb im
>> Newsbeitrag news:gtv6eb$ri1$1@build.eclipse.org...
>>> 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)
>>>
>>
>>
> Hi Carsten,
>
> I found my fault. There was no implementation of ISessionStore running.
>
> thanks
>
> Rüdiger
I was just about to propose that you check for services

OSGI commands that are help

ss: status of bundles
status: status of services
remotestatus: this command is implemented in riena.communication.console and list on the server the visibile
remoteservices and on the client the list of local OSGi services that are actual proxies to remote services

christian
Re: missing SessionStore [message #25734 is a reply to message #25711] Fri, 08 May 2009 12:28 Go to previous message
RRK is currently offline RRKFriend
Messages: 21
Registered: July 2009
Junior Member
Christian Campo schrieb:
> Rüdiger Rensinghoff-Kranen schrieb:
>> Carsten Spieker schrieb:
>>> Hello Rüdiger,
>>>
>>> I hope I understood your problem correctly.
>>>
>>> AFAIK the ISessionService implementation in
>>> org.eclipse.riena.security.services is bind to an implementation of
>>> ISessionStore (to store the former created session). This means any
>>> implementation of ISessionStore must be registered in your OSGi
>>> framework on server side. You could for example install bundle
>>> org.eclipse.riena.security.simpleservices in your server-side OSGi
>>> framework This bundle provides such a service implementation. The
>>> NullPointerException then should be solved.
>>>
>>> Hope this hint helps you.
>>>
>>> Greetz,
>>> Carsten
>>>
>>>
>>> "Rüdiger Rensinghoff-Kranen" <info@rensinghoff-kranen.de> schrieb im
>>> Newsbeitrag news:gtv6eb$ri1$1@build.eclipse.org...
>>>> 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)
>>>>
>>>
>>>
>> Hi Carsten,
>>
>> I found my fault. There was no implementation of ISessionStore running.
>>
>> thanks
>>
>> Rüdiger
> I was just about to propose that you check for services
>
> OSGI commands that are help
>
> ss: status of bundles
> status: status of services
> remotestatus: this command is implemented in riena.communication.console
> and list on the server the visibile remoteservices and on the client the
> list of local OSGi services that are actual proxies to remote services
>
> christian

thanks for your hints Christian. For the moment I'm happy that my
problem is solved and in joyful anticipation what M7 brings to me.

Rüdiger
Re: missing SessionStore [message #582276 is a reply to message #25402] Fri, 08 May 2009 05:49 Go to previous message
Carsten Spieker is currently offline Carsten SpiekerFriend
Messages: 197
Registered: July 2009
Senior Member
Hello R
Re: missing SessionStore [message #582291 is a reply to message #25492] Fri, 08 May 2009 07:31 Go to previous message
Christian Campo is currently offline Christian CampoFriend
Messages: 597
Registered: July 2009
Senior Member
Right, You have "somewhat modified" equinox.security.simpleservices but it does not show up in the list of installed
bundles. It is not added automatically if you do add required bundles because there is no direct dependencies....

Carsten already written down what I could have written any better :-)

christian


Carsten Spieker schrieb:
> Hello Rüdiger,
>
> I hope I understood your problem correctly.
>
> AFAIK the ISessionService implementation in
> org.eclipse.riena.security.services is bind to an implementation of
> ISessionStore (to store the former created session). This means any
> implementation of ISessionStore must be registered in your OSGi framework on
> server side. You could for example install bundle
> org.eclipse.riena.security.simpleservices in your server-side OSGi framework
> This bundle provides such a service implementation. The NullPointerException
> then should be solved.
>
> Hope this hint helps you.
>
> Greetz,
> Carsten
>
>
> "Rüdiger Rensinghoff-Kranen" <info@rensinghoff-kranen.de> schrieb im
> Newsbeitrag news:gtv6eb$ri1$1@build.eclipse.org...
>> 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)
>>
>
>
Re: missing SessionStore [message #582342 is a reply to message #25533] Fri, 08 May 2009 09:41 Go to previous message
RRK is currently offline RRKFriend
Messages: 21
Registered: July 2009
Junior Member
Christian Campo schrieb:
> Right, You have "somewhat modified" equinox.security.simpleservices but
> it does not show up in the list of installed bundles. It is not added
> automatically if you do add required bundles because there is no direct
> dependencies....
>
> Carsten already written down what I could have written any better :-)
>
> christian
>
>
> Carsten Spieker schrieb:
>> Hello Rüdiger,
>>
>> I hope I understood your problem correctly.
>>
>> AFAIK the ISessionService implementation in
>> org.eclipse.riena.security.services is bind to an implementation of
>> ISessionStore (to store the former created session). This means any
>> implementation of ISessionStore must be registered in your OSGi
>> framework on server side. You could for example install bundle
>> org.eclipse.riena.security.simpleservices in your server-side OSGi
>> framework This bundle provides such a service implementation. The
>> NullPointerException then should be solved.
>>
>> Hope this hint helps you.
>>
>> Greetz,
>> Carsten
>>
>>
>> "Rüdiger Rensinghoff-Kranen" <info@rensinghoff-kranen.de> schrieb im
>> Newsbeitrag news:gtv6eb$ri1$1@build.eclipse.org...
>>> 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)
>>>
>>
>>
Hello Carsten and Christian,

thanks for the fast reply. First de.psgl400.server.security_1.0.0 is a
copy of org.eclipse.riena.security.simpleservices Version 1.1.0.M6 and
it's ACTIVE. What I have changed is the LoginModul class. In
SampleLoginModule Properties accounts are initialized from a textfile.
I want to use Riena as a frontend to ERP serversystems I'm developing
for over 20 years. And I nead a verification and knowledge of the user
for my backend. Hence I filled accounts in initialize in the first step
hardcoded. Never the less if I bind riena.security.simpleservices
instead of my version I get the error at ServiceHooksProxy.java:70. When
debugging I come to AuthenticationService.login where
sessionService.generateSession(pArray) is called. And here store must
not be null but it is. Here I'm at the end of my proficiency and would
be glad you could help me.

Rüdiger
Re: missing SessionStore [message #582357 is a reply to message #25492] Fri, 08 May 2009 10:25 Go to previous message
RRK is currently offline RRKFriend
Messages: 21
Registered: July 2009
Junior Member
Carsten Spieker schrieb:
> Hello Rüdiger,
>
> I hope I understood your problem correctly.
>
> AFAIK the ISessionService implementation in
> org.eclipse.riena.security.services is bind to an implementation of
> ISessionStore (to store the former created session). This means any
> implementation of ISessionStore must be registered in your OSGi framework on
> server side. You could for example install bundle
> org.eclipse.riena.security.simpleservices in your server-side OSGi framework
> This bundle provides such a service implementation. The NullPointerException
> then should be solved.
>
> Hope this hint helps you.
>
> Greetz,
> Carsten
>
>
> "Rüdiger Rensinghoff-Kranen" <info@rensinghoff-kranen.de> schrieb im
> Newsbeitrag news:gtv6eb$ri1$1@build.eclipse.org...
>> 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)
>>
>
>
Hi Carsten,

I found my fault. There was no implementation of ISessionStore running.

thanks

Rüdiger
Re: missing SessionStore [message #582380 is a reply to message #25683] Fri, 08 May 2009 11:59 Go to previous message
Christian Campo is currently offline Christian CampoFriend
Messages: 597
Registered: July 2009
Senior Member
Rüdiger Rensinghoff-Kranen schrieb:
> Carsten Spieker schrieb:
>> Hello Rüdiger,
>>
>> I hope I understood your problem correctly.
>>
>> AFAIK the ISessionService implementation in
>> org.eclipse.riena.security.services is bind to an implementation of
>> ISessionStore (to store the former created session). This means any
>> implementation of ISessionStore must be registered in your OSGi
>> framework on server side. You could for example install bundle
>> org.eclipse.riena.security.simpleservices in your server-side OSGi
>> framework This bundle provides such a service implementation. The
>> NullPointerException then should be solved.
>>
>> Hope this hint helps you.
>>
>> Greetz,
>> Carsten
>>
>>
>> "Rüdiger Rensinghoff-Kranen" <info@rensinghoff-kranen.de> schrieb im
>> Newsbeitrag news:gtv6eb$ri1$1@build.eclipse.org...
>>> 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)
>>>
>>
>>
> Hi Carsten,
>
> I found my fault. There was no implementation of ISessionStore running.
>
> thanks
>
> Rüdiger
I was just about to propose that you check for services

OSGI commands that are help

ss: status of bundles
status: status of services
remotestatus: this command is implemented in riena.communication.console and list on the server the visibile
remoteservices and on the client the list of local OSGi services that are actual proxies to remote services

christian
Re: missing SessionStore [message #582393 is a reply to message #25711] Fri, 08 May 2009 12:28 Go to previous message
RRK is currently offline RRKFriend
Messages: 21
Registered: July 2009
Junior Member
Christian Campo schrieb:
> Rüdiger Rensinghoff-Kranen schrieb:
>> Carsten Spieker schrieb:
>>> Hello Rüdiger,
>>>
>>> I hope I understood your problem correctly.
>>>
>>> AFAIK the ISessionService implementation in
>>> org.eclipse.riena.security.services is bind to an implementation of
>>> ISessionStore (to store the former created session). This means any
>>> implementation of ISessionStore must be registered in your OSGi
>>> framework on server side. You could for example install bundle
>>> org.eclipse.riena.security.simpleservices in your server-side OSGi
>>> framework This bundle provides such a service implementation. The
>>> NullPointerException then should be solved.
>>>
>>> Hope this hint helps you.
>>>
>>> Greetz,
>>> Carsten
>>>
>>>
>>> "Rüdiger Rensinghoff-Kranen" <info@rensinghoff-kranen.de> schrieb im
>>> Newsbeitrag news:gtv6eb$ri1$1@build.eclipse.org...
>>>> 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)
>>>>
>>>
>>>
>> Hi Carsten,
>>
>> I found my fault. There was no implementation of ISessionStore running.
>>
>> thanks
>>
>> Rüdiger
> I was just about to propose that you check for services
>
> OSGI commands that are help
>
> ss: status of bundles
> status: status of services
> remotestatus: this command is implemented in riena.communication.console
> and list on the server the visibile remoteservices and on the client the
> list of local OSGi services that are actual proxies to remote services
>
> christian

thanks for your hints Christian. For the moment I'm happy that my
problem is solved and in joyful anticipation what M7 brings to me.

Rüdiger
Previous Topic:1.1.0.M7 step 1
Next Topic:Riena 1.1.0.M7
Goto Forum:
  


Current Time: Sat Nov 27 20:48:46 GMT 2021

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

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

Back to the top