cancel
Showing results for 
Search instead for 
Did you mean: 

Java Engine Fatal: Can not instantiate UserContext with given properties.

Former Member
0 Kudos

Hi All

On the solution manager Dual Stack Java Engine is not starting up. When I checked the file std_server0.out, Following there is error in log.I paste that message under. I checked the SAPJSF user, it is not locked as well SAPJSF have proper roles assigned.

Your valuable help is much appreciated.

12.302: [GC 12.302: [DefNew: 108480K->27088K(131328K), 0.0640648 secs] 108480K->27088K(1004800K), 0.0641575 secs]

Service com.sap.security.core.ume.service started. (1953 ms).

Feb 24, 2010 9:16:57 AM ...xt.<init>(UserContextSpi, Properties) [SAPEngine_System_Thread[impl:5]_26]

Fatal: Can not instantiate UserContext with given properties.

service security ================= ERROR =================

Core service security failed. J2EE Engine cannot be started.

com.sap.engine.services.security.exceptions.SecurityServiceException: Unexpected exception:

at com.sap.engine.services.security.SecurityServerFrame.start(SecurityServerFrame.java:181)

at

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Hardeep,

Hope this post could help

Regards,

Kiran Madhu

Former Member
0 Kudos

In the exception you pasted, it shows the security service failed for some reason. Security service is a core service and if that fails, the engine can not start.

Always paste the entire exception as usually the 'caused by' section in the exception says the real reason of why the UME/Security service failed to load.

Please also refer to the section from help portal:

http://help.sap.com/saphelp_nw70/helpdata/en/64/351941edd5ef23e10000000a155106/frameset.htm

all topics in left frame.

Hope it helps.

Regards,

Snehal Bhaidasna

SAP Labs, Palo Alto, CA(USA)

Former Member
0 Kudos

Hi Snahel

I pasted all the content of file under.This might help in investigating the issue.

-


stdout/stderr redirect

-


node name : server0

pid : 6752

system name : SMP

system nr. : 39

started at : Tue Mar 02 09:31:20 2010

[Thr 8828] MtxInit: 10001 0 0

CompilerOracle: exclude com/sapportals/portal/pb/layout/taglib/ContainerTag addIviewResources

CompilerOracle: exclude com/sap/engine/services/keystore/impl/security/CodeBasedSecurityConnector getApplicationDomain

CompilerOracle: exclude com/sap/engine/services/rmi_p4/P4StubSkeletonGenerator generateStub

CompilerOracle: exclude com/sapportals/portal/prt/util/StringUtils escapeToJS

CompilerOracle: exclude com/sapportals/portal/prt/core/broker/PortalServiceItem startServices

CompilerOracle: exclude com/sap/engine/services/webservices/server/deploy/WSConfigurationHandler downloadFile

CompilerOracle: exclude com/sapportals/portal/prt/jndisupport/util/AbstractHierarchicalContext lookup

CompilerOracle: exclude com/sapportals/portal/navigation/cache/CacheNavigationNode getAttributeValue

CompilerOracle: exclude com/sapportals/portal/navigation/TopLevelNavigationiView PrintNode

CompilerOracle: exclude com/sapportals/wcm/service/ice/wcm/ICEPropertiesCoder encode

CompilerOracle: exclude com/sap/lcr/pers/delta/importing/ObjectLoader loadObjects

CompilerOracle: exclude com/sap/engine/services/webservices/jaxrpc/encoding/InstanceBuilder readElement

CompilerOracle: exclude com/sap/engine/services/webservices/jaxrpc/encoding/InstanceBuilder readSequence

CompilerOracle: exclude com/sap/engine/services/webservices/jaxrpc/encoding/TypeMappingImpl initializeRelations

CompilerOracle: exclude com/sap/engine/services/webservices/jaxrpc/encoding/GeneratedComplexType _loadInto

SAP J2EE Engine Version 7.00 PatchLevel 109886.44 is starting...

Loading: LogManager ... 328 ms.

Loading: PoolManager ... 0 ms.

Loading: ApplicationThreadManager ... 47 ms.

Loading: ThreadManager ... 15 ms.

Loading: IpVerificationManager ... 0 ms.

Loading: ClassLoaderManager ... 16 ms.

Loading: ClusterManager ... 125 ms.

Loading: LockingManager ... 47 ms.

Loading: ConfigurationManager ... 1297 ms.

Loading: LicensingManager ... 16 ms.

Loading: CacheManager ... 78 ms.

Loading: ServiceManager ...

3.333: [GC 3.333: [DefNew: 87552K->7065K(131328K), 0.0360959 secs] 87552K->7065K(1004800K), 0.0362254 secs]

Loading services.:

Service runtimeinfo started. (16 ms).

Service cross started. (47 ms).

Service file started. (47 ms).

Service memory started. (47 ms).

Service timeout started. (32 ms).

Service trex.service started. (47 ms).

Service userstore started. (0 ms).

Service jmx_notification started. (15 ms).

Service p4 started. (78 ms).

Service classpath_resolver started. (16 ms).

5.540: [GC 5.541: [DefNew: 94617K->12999K(131328K), 0.0492793 secs] 94617K->12999K(1004800K), 0.0493919 secs]

6.845: [GC 6.845: [DefNew: 100551K->14443K(131328K), 0.0372649 secs] 100551K->14443K(1004800K), 0.0373516 secs]

7.502: [GC 7.502: [DefNew: 101995K->13536K(131328K), 0.0300176 secs] 101995K->13536K(1004800K), 0.0300802 secs]

8.743: [GC 8.744: [DefNew: 101088K->16130K(131328K), 0.0379317 secs] 101088K->16130K(1004800K), 0.0380110 secs]

9.869: [GC 9.869: [DefNew: 103682K->20022K(131328K), 0.0461472 secs] 103682K->20022K(1004800K), 0.0462855 secs]

Service deploy started. (5609 ms).

Service MigrationService started. (32 ms).

Service bimmrdeployer started. (0 ms).

Service log_configurator started. (6437 ms).

10.938: [GC 10.938: [DefNew: 107574K->20819K(131328K), 0.0468098 secs] 107574K->20819K(1004800K), 0.0468985 secs]

Service locking started. (0 ms).

Service http started. (109 ms).

Service naming started. (187 ms).

Service failover started. (31 ms).

Service appclient started. (47 ms).

Service javamail started. (47 ms).

Service ts started. (47 ms).

Service jmsconnector started. (63 ms).

Service licensing started. (0 ms).

Service connector started. (94 ms).

Service iiop started. (93 ms).

Service configuration started. (31 ms).

Service webservices started. (312 ms).

Service dbpool started. (1140 ms).

Service UT started. (0 ms).

14.203: [GC 14.203: [DefNew: 108371K->27004K(131328K), 0.0697915 secs] 108371K->27004K(1004800K), 0.0698831 secs]

Service com.sap.security.core.ume.service started. (2328 ms).

Mar 2, 2010 9:31:36 AM ...xt.<init>(UserContextSpi, Properties) [SAPEngine_System_Thread[impl:5]_26] Fatal: Can not instantiate UserContext with given properties.

service security ================= ERROR =================

Core service security failed. J2EE Engine cannot be started.

com.sap.engine.services.security.exceptions.SecurityServiceException: Unexpected exception:

at com.sap.engine.services.security.SecurityServerFrame.start(SecurityServerFrame.java:181)

at com.sap.engine.core.service630.container.ServiceRunner.startApplicationServiceFrame(ServiceRunner.java:214)

at com.sap.engine.core.service630.container.ServiceRunner.run(ServiceRunner.java:144)

at com.sap.engine.frame.core.thread.Task.run(Task.java:64)

at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:81)

at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:152)

Caused by: com.sap.engine.services.security.exceptions.BaseSecurityException: No active userstore is set.

at com.sap.engine.services.security.server.UserStoreFactoryImpl.getActiveUserStore(UserStoreFactoryImpl.java:77)

at com.sap.engine.services.security.server.jaas.LoginModuleHelperImpl.update(LoginModuleHelperImpl.java:405)

at com.sap.engine.services.security.server.jaas.LoginModuleHelperImpl.<init>(LoginModuleHelperImpl.java:84)

at com.sap.engine.services.security.server.SecurityContextImpl.<init>(SecurityContextImpl.java:58)

at com.sap.engine.services.security.SecurityServerFrame.start(SecurityServerFrame.java:135)

... 5 more

com.sap.engine.services.security.exceptions.SecurityServiceException: Unexpected exception:

at com.sap.engine.services.security.SecurityServerFrame.start(SecurityServerFrame.java:181)

at com.sap.engine.core.service630.container.ServiceRunner.startApplicationServiceFrame(ServiceRunner.java:214)

at com.sap.engine.core.service630.container.ServiceRunner.run(ServiceRunner.java:144)

at com.sap.engine.frame.core.thread.Task.run(Task.java:64)

at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:81)

at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:152)

Caused by: com.sap.engine.services.security.exceptions.BaseSecurityException: No active userstore is set.

at com.sap.engine.services.security.server.UserStoreFactoryImpl.getActiveUserStore(UserStoreFactoryImpl.java:77)

at com.sap.engine.services.security.server.jaas.LoginModuleHelperImpl.update(LoginModuleHelperImpl.java:405)

at com.sap.engine.services.security.server.jaas.LoginModuleHelperImpl.<init>(LoginModuleHelperImpl.java:84)

at com.sap.engine.services.security.server.SecurityContextImpl.<init>(SecurityContextImpl.java:58)

at com.sap.engine.services.security.SecurityServerFrame.start(SecurityServerFrame.java:135)

... 5 more

[Framework -> criticalShutdown] Core service security failed. J2EE Engine cannot be started.

Mar 2, 2010 9:31:36 AM com.sap.engine.core.Framework [SAPEngine_System_Thread[impl:5]_26] Fatal: Critical shutdown was invoked. Reason is: Core service security failed. J2EE Engine cannot be started.

Thanks

Hardeep Bajwa

Former Member
0 Kudos

Hello,

Its 'No active userstore set'.

The same issue is resolved in the two links pasted by Hardeep as well as please also refer to the sap link I sent.

You should find the solution from these 3 links :-).

If not, you may need to open a message with BC-JAS-SEC-UME team in SAP.

Regards,

Snehal

Former Member
0 Kudos

Also refer to SAP Note 1042418

Answers (2)

Answers (2)

Former Member
0 Kudos

I solved this by checking the r3 connection parameters through ConfigTool, then setting IP4 of the host for it's FQDN.

See solution #2 in networking - IPv4 vs IPv6 priority in Windows 7 - Super User

Applies for Windows Servers.

Former Member
0 Kudos

I solved the problem by first resetting values to deafult and the compare the values from diffrent Java engine instance and changed according to this server.