SAP Knowledge Base Article - Preview

2594453 - ASE COCKPIT can't connect to ASE and raised unexpected stack trace at start up - SAP ASE

Symptom

When a new ASE plugin directory is created at "$SYBASE/COCKPIT-4/plugins/<ASE_Name>", the following problem may occur.

  1. When connecting from a web browser to the target ASE, it fails with "Login failed" message.
    Then, the following error will output in the gateway.log.

    2018-01-23 08:09:59,437 [INFO ] [adapter.UAFLoginCommand                      ] [scc-ui::989] - Authenticating web login sa
    2018-01-23 08:10:00,846 [WARN ] [jmx.SccSessionImpl                           ] [scc-ui::989] - Failed to authenticate user 'sa' (while trying to invoke the method com.sybase.scc.sdk.ConnectionProfile.getProperties() of a null object loaded from local variable 'profile')
    2018-01-23 08:10:00,885 [INFO ] [adapter.UAFLoginCommand                      ] [scc-ui::989] - Authentication failed for user sa: com.sybase.scc.jmx.ISccSession.agnt_auth_fail
    2018-01-23 08:10:00,885 [INFO ] [adapter.UAFLoginCommand                      ] [scc-ui::989] - Caused by while trying to invoke the method com.sybase.scc.sdk.ConnectionProfile.getProperties() of a null object loaded from local variable 'profile'

  2. The following two types of stack traces are output to the startup console of the COCKPIT server.

    (Stack sample 1)
    Exception in thread "Timer-2" com.sybase.ua.plugin.AgentPluginException: com.sybase.scc.sdk.cpcreate com.sybase.scc.sdk.SccSdkException: com.sybase.scc.sdk.cpcreate
            at com.sybase.ua.plugins.asemap.util.ASEResourceDiscoveryHelper.createASEServerManagedObjects(ASEResourceDiscoveryHelper.java:308)
            at com.sybase.ua.plugins.asemap.util.ASEResourceDiscoveryHelper$ASEResourceDiscoveryTask.run(ASEResourceDiscoveryHelper.java:136)
            at java.util.TimerThread.mainLoop(Timer.java:564)
            at java.util.TimerThread.run(Timer.java:514)
    Caused by: com.sybase.scc.sdk.SccSdkException: com.sybase.scc.sdk.cpcreate
            at com.sybase.scc.sdk.impl.ManagedObjectImpl.addConnectionProfile(Unknown Source)
            at com.sybase.ua.plugins.asemap.util.ASEResourceDiscoveryHelper.addNewDiscoveredASEResources(ASEResourceDiscoveryHelper.java:393)
            at com.sybase.ua.plugins.asemap.util.ASEResourceDiscoveryHelper.createASEServerManagedObjects(ASEResourceDiscoveryHelper.java:303)
            ... 3 more
    Caused by: java.lang.RuntimeException: A value is required for key 'PORT' when configuring connection profile for '<ASE_Name>'
            at com.sybase.ua.services.scc.security.SccSecurityService.addConnectionProfile(Unknown Source)
            at com.sybase.ua.services.scc.SccService.addConnectionProfile(Unknown Source)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:498)
            at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:71)
            at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:498)
            at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:275)
            at javax.management.modelmbean.RequiredModelMBean$4.run(RequiredModelMBean.java:1252)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
            at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1246)
            at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:1085)
            at com.sybase.scc.metadata.mbean.SccRequiredModelMBean.invoke(Unknown Source)
            at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
            at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
            at javax.management.MBeanServerInvocationHandler.invoke(MBeanServerInvocationHandler.java:298)
            at com.sun.proxy.$Proxy74.addConnectionProfile(Unknown Source)
            ... 6 more

    (Stack sample 2)
    Exception in thread "Timer-2" java.lang.NullPointerException: while trying to invoke the method com.sybase.scc.sdk.ConnectionProfile.getProperties() of a null object loaded from local variable 'connectionProfile'
            at com.sybase.ua.plugins.asemap.util.ASEResourceDiscoveryHelper.removeNoExistASEResources(ASEResourceDiscoveryHelper.java:327)
            at com.sybase.ua.plugins.asemap.util.ASEResourceDiscoveryHelper.createASEServerManagedObjects(ASEResourceDiscoveryHelper.java:300)
            at com.sybase.ua.plugins.asemap.util.ASEResourceDiscoveryHelper$ASEResourceDiscoveryTask.run(ASEResourceDiscoveryHelper.java:136)
            at java.util.TimerThread.mainLoop(Timer.java:564)
            at java.util.TimerThread.run(Timer.java:514)


Read more...

Environment

  •  SAP Adaptive Server Enterprise 16.0 SP02 or later

Product

SAP Adaptive Server Enterprise 16.0

Keywords

COCKPIT, SCC, Login failed, cockpit.sh , KBA , BC-SYB-ASE , Sybase ASE Database Platform (non Business Suite) , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.