cancel
Showing results for 
Search instead for 
Did you mean: 

HCP - Predictive Service failed to start

Former Member
0 Kudos

Hi,

I am trying to use "Predictive Service" in HCP, but meet below exception when I start "aac4paservices".

My HANA database version is "1.00.102.03.1449674847", APL version is 2.4.10.1

And I also assigned following roles to the user configured in Data Source binding

    "AFL__SYS_AFL_AFLBFL_EXECUTE",

    "AFL__SYS_AFL_APL_AREA_EXECUTE"

    "AFLPM_CREATOR_ERASER_EXECUTE"

    "sap.pa.apl.base.roles::APL_EXECUTE"

Exception in log:

2016 02 15 09:17:50#INFO#LJS_OUTPUT#Thread-9#09:17:50.912 [localhost-startStop-1] ERROR c.s.c.r.k.p.client.PersistenceDataSourceFactory - An exception occurred during rest communication with local config service: java.io.FileNotFoundException: http://localhost:20002/config/v1/services/persistence/jdbc/DefaultDB|

2016 02 15 09:17:50#INFO#LJS_OUTPUT#Thread-9#09:17:50.924 [localhost-startStop-1] ERROR c.s.c.r.k.p.client.PersistenceDataSourceFactory - Retrieved persistence properties are null!|

2016 02 15 09:17:56#INFO#LJS_OUTPUT#Thread-9#09:17:56.407 [SAP-ML-Services-job-Scheduler-445291539-] ERROR com.sap.analytics.cloud.JobScheduler - error while trying to process next jobs|

2016 02 15 09:17:56#INFO#LJS_OUTPUT#Thread-9#com.sap.analytics.cloud.ProcessorException: Error DB connection: Cannot create JDBC driver of class '' for connect URL 'null'.|

2016 02 15 09:17:56#INFO#LJS_OUTPUT#Thread-9# at com.sap.analytics.cloud.JDBC.getHcpConnection(JDBC.java:98)|

2016 02 15 09:17:56#INFO#LJS_OUTPUT#Thread-9# at com.sap.analytics.cloud.JobScheduler.run(JobScheduler.java:82)|

2016 02 15 09:17:56#INFO#LJS_OUTPUT#Thread-9#Caused by: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'|

2016 02 15 09:17:56#INFO#LJS_OUTPUT#Thread-9# at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createConnectionFactory(BasicDataSource.java:1452)|

2016 02 15 09:17:56#INFO#LJS_OUTPUT#Thread-9# at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1371)|

2016 02 15 09:17:56#INFO#LJS_OUTPUT#Thread-9# at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)|

2016 02 15 09:17:56#INFO#LJS_OUTPUT#Thread-9# at com.sap.analytics.cloud.JDBC.getHcpConnection(JDBC.java:81)|

2016 02 15 09:17:56#INFO#LJS_OUTPUT#Thread-9# ... 1 common frames omitted|

2016 02 15 09:17:56#INFO#LJS_OUTPUT#Thread-9#Caused by: java.lang.NullPointerException: while trying to invoke the method java.lang.String.indexOf(int) of a null object loaded from local variable 'url'|

2016 02 15 09:17:56#INFO#LJS_OUTPUT#Thread-9# at sun.jdbc.odbc.JdbcOdbcDriver.getProtocol(JdbcOdbcDriver.java:524)|

2016 02 15 09:17:56#INFO#LJS_OUTPUT#Thread-9# at sun.jdbc.odbc.JdbcOdbcDriver.knownURL(JdbcOdbcDriver.java:493)|

2016 02 15 09:17:56#INFO#LJS_OUTPUT#Thread-9# at sun.jdbc.odbc.JdbcOdbcDriver.acceptsURL(JdbcOdbcDriver.java:307)|

2016 02 15 09:17:56#INFO#LJS_OUTPUT#Thread-9# at java.sql.DriverManager.getDriver(DriverManager.java:262)|

2016 02 15 09:17:56#INFO#LJS_OUTPUT#Thread-9# at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createConnectionFactory(BasicDataSource.java:1437)|

2016 02 15 09:17:56#INFO#LJS_OUTPUT#Thread-9# ... 4 common frames omitted|

The process "aac4paservices" shows as green started, but got below response when try REST APIs:

{"errors":[{"errorMessage":"The application is under maintenance, please contact your account admin for more details.","errorCode":"EXXXX"}]}

Anyone has any idea? Very appropriate any help.

Best Regards,

Yancy

Accepted Solutions (1)

Accepted Solutions (1)

thierry_brunet
Advisor
Advisor
0 Kudos

Hello Yancy

I contact you by email to get more information and help you to resolve this issue.

Best regards

Thierry

thierry_brunet
Advisor
Advisor
0 Kudos

Hello Yancy

The cause of the problem is in the Data Source Bindings. When you define it for the HCP predictive services, the Data Source field must be left empty so that its name will be by default <DEFAULT>.

So to fix the problem, simply delete the binding and create a new one exactly the same way except for the Data Source field. Then it is necessary to stop and restart the Java application of the HCP predictive services.

Best regards

Thierry

Answers (0)